jar

Android VerifyError crash using jackson parser

帅比萌擦擦* 提交于 2019-12-24 11:12:31
问题 Here is my log cat. Unfortunately I am not a pro in reading errors from logcat so please help me :) 05-30 12:12:16.510: I/System.out(838): We made it this far 1 05-30 12:12:17.230: I/System.out(838): We made it this far 2 05-30 12:12:17.240: W/dalvikvm(838): VFY: unable to resolve exception class 748 (Lcom/fasterxml/jackson/core/JsonParseException;) 05-30 12:12:17.240: W/dalvikvm(838): VFY: unable to find exception handler at addr 0x2a 05-30 12:12:17.240: W/dalvikvm(838): VFY: rejected Lcom

Can I use the classpath to override a file in a jar that is being run?

只谈情不闲聊 提交于 2019-12-24 10:37:28
问题 I have a JAR file that contains an application as well as configuration files for that application. The application loads configuration files from the classpath (using ClassLoader.getResource() ), and has its dependencies completely satisfied using the configuration files baked into the JAR file. On occasion I want the application to be run with a slightly different configuration (specifically I want to override the JDBC URL to point to a different database) so I create a new configuration

Java applet jnlp + libraries

核能气质少年 提交于 2019-12-24 10:36:45
问题 I am trying to add libraries to applet. I am using the jnlp + deploy java javascript. Everything seems to be configured correctly, bud the classes are not found (class not found exception). Here is my code: JNLP: <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="." href=""> <information> <title>KeystoreTestApplet</title> <vendor>Paulie</vendor> </information> <resources> <!-- Application Resources --> <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/> <jar

java matlab how can I run a jar inside a matlab script?

孤街醉人 提交于 2019-12-24 09:58:08
问题 I created a jar that basically parses a bunch of pdf/text files and creates a .mat file. I also have a matlab script that loads that .mat file and compares the data against some other data. I want to ensure that the jar runs and updates the .mat file first. I want the first line of my matlab script to execute the jar and wait for it to complete. How do I do this? 回答1: I got it to run by using system('java -jar jarname.jar') 回答2: Make sure the jar is in your Matlab class path. Presumably there

0xC0000005: Access violation reading location 0x0000000000000000

与世无争的帅哥 提交于 2019-12-24 09:29:27
问题 I'm trying to use a jar file in c++ program using JNI. I did this: // TestJavaToCpp.cpp : Defines the entry point for the console application. // #include <jni.h> #include "stdafx.h" #include <windows.h> #include <stdio.h> #include <iostream> using namespace std; int main() { JavaVM *jvm; JNIEnv *env; JavaVMInitArgs vm_args; JavaVMOption options; options.optionString = "-Djava.class.path=HelloWorld.jar"; vm_args.version = JNI_VERSION_1_6; vm_args.nOptions = 1; vm_args.options = &options; vm

Cannot install a jar package without an IDE

狂风中的少年 提交于 2019-12-24 08:38:58
问题 I have a dropbox-core-sdk-1.7.5.jar archive file. I tried to install it as a package in my Home directory with: java -jar dropbox-core-sdk-1.7.5.jar but the terminal spits out: "no main manifest attribute, in dropbox-core-sdk-1.7.5.jar". The thread Can't execute jar- file: "no main manifest attribute" suggests that I need to add a line similar to "Main-Class: com.mypackage.MyClass" META-INF/MANIFEST.MF file. But I don't know what class I'm supposed to type in. I've found instructions on http:

Execution failed for task ':app:dexDebug'

假装没事ソ 提交于 2019-12-24 08:38:29
问题 This is my gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 20 buildToolsVersion '20.0.0' defaultConfig { applicationId "com.nifty.eattime.eattime" minSdkVersion 15 targetSdkVersion 20 versionCode 1 versionName "1.0" } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE-FIREBASE.txt' exclude 'META-INF/NOTICE' } }

Create JAR file from multiple project, dependent to each other

我只是一个虾纸丫 提交于 2019-12-24 08:18:39
问题 I have three apache-camel project, lets say project-A , project-B and project-C . project-A have java main method which is dependent on project-B and project-B is dependent on project-C(dependency of project-C is added inside project-B and project-B dependency is added inside project-A). I want to create the jar file for project-B. I have tried to create jar file by putting following configuration inside project-A's pom.xml- <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId>

HornetQ - java.lang.NoClassDefFoundError: Lorg/hornetq/core/logging/Logger;

左心房为你撑大大i 提交于 2019-12-24 08:14:28
问题 I am trying to run a simple HornetQ example from a book (HornetQ Messaging Developers Guide) but get error messages. I have not used maven since I wanted to stick close to the example given in the book. The HornetQ Standalone server started normally in command line. I am just trying to send a message to the HonretQ server. package chapter01; import javax.jms.JMSException; import javax.naming.NamingException; public class ECGMessageConsumerProducerExample { public static void main(String[]

How to load a jar from an URL without downloading it?

萝らか妹 提交于 2019-12-24 08:03:43
问题 JAVA - Well just that, i know how to load external jars from my main project with classloader and even download a jar from an url and load it, but there's anyway to load a jar from a url without dowloading? just load it in memory from the url to use it? thanks! 来源: https://stackoverflow.com/questions/14751584/how-to-load-a-jar-from-an-url-without-downloading-it