classpath

Eclipse opens wrong source file on exception

喜夏-厌秋 提交于 2019-12-12 22:55:58
问题 I have several Android projects in an Eclipse workspace: a stand-alone application project with a class my.package.Foo a library project with a different class my.package.Foo two application projects that depend on the library project and contain no source code The problem comes when working with one of the applications built on top of the library project. When it crashes (sadly, a frequent occurrence), I double-click on a line of the stack trace in the logcat to go to the relevant source.

what is difference between kind=“con” and kind=“src ” in buildpath reference

前提是你 提交于 2019-12-12 21:53:50
问题 I have a classpath in my project there is two reference kind one is src one is con. con kind referenced jars is missing in my project. What is difference between these two reference kind and. Here my .classpath file 1 <?xml version="1.0" encoding="UTF-8"?> 2 <classpath> 3 <classpathentry kind="src" path="src"/> 4 <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> 5 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui

Matlab Compiler MCC errors on imports for Java classes from dynamic Java classpath

点点圈 提交于 2019-12-12 21:13:23
问题 How can I get mcc to recognize imports from user-provided Java libraries, or to simply ignore unresolvable imports? I have a Matlab codebase that I'm building with the Matlab Compiler, but the build is breaking because mcc is erroring out when it encounters import statements for Java classes that were in JARs on Matlab's dynamic classpath. I am including all the JAR files on the classpath with the mcc -a option. The code works in the IDE, and I think it will work in the deployed app, if it

JBoss AS 7 : how to make independant deployment of EJB and dependent WAR?

人走茶凉 提交于 2019-12-12 20:45:28
问题 I have an application with one EJB ( mwf_ejb.jar ) and a WAR ( mwf_web.war ). If I package them in the same EAR, everything is OK. Is there any way to deploy the EJB first, then the WAR ? If I try it, my EJB JAR deploys well, but when I deploy my WAR, I get the following error (in JBoss AS 7.1.1): MSC00001: Failed to start service jboss.deployment.unit."mwf_web.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."mwf_web.war".STRUCTURE: Failed to process

Loading Multiple Jars on Windows - JNI JNI_CreateJavaVM

纵饮孤独 提交于 2019-12-12 19:23:31
问题 I'm creating a JVM within my C++ application for windows, and I'm unable to convince it to load multiple jars. My C++ code: MyClass::MyClass(std::string & classPath) { classPath = "-cp "+classPath; // <-- Won't work with any path or single jar //classPath = "-Djava.class.path="+classPath; <-- Only works with single jar jvmOptions[0].optionString = (char *)classPath.c_str(); jvmOptions[1].optionString = "-Xms8m"; jvmOptions[2].optionString = "-Xmx24m"; jvmArgs.version = JNI_VERSION_1_6;

Grails: importing plugin classes to _Events.groovy

最后都变了- 提交于 2019-12-12 18:33:24
问题 I've created a Grails plugin which adds a custom test type class (extending GrailsTestTypeSupport ) and custom test result class (extending GrailsTestTypeResult ) to support a custom test type that I run during the other phase of the test-app script. Testing this on my local machine has gone swimmingly but... When I packaged the plugin to use in my app, the tests are blowing up on our CI server (Jenkins). Here's the error that Jenkins is spitting out: unable to resolve class CustomTestResult

Use of java.lang.Class.getResources

本秂侑毒 提交于 2019-12-12 18:27:58
问题 I've seen some posts on using java.lang.Class.getResources() and java.lang.Class.getResourcesAsStream() on SO today. Somehow, I still have confusion. I have a Jar file that contains this structure (resources/test.xml) This jar file is on the classpath of my application, and when I call below piece of code, it returns null, i.e. value of mappingURL is null. URL mappingURL = this.getClass().getResource("/resources/test.xml"); However when I store the XML file in exploded format on the classpath

java manifest classpath vs. -classpath

丶灬走出姿态 提交于 2019-12-12 18:01:27
问题 I'm trying to figure out an odd problem I have with an executable jar file: xyz.jar has a classpath in the manifest file / and depends on abc.jar library. Unfortunately, the manifest classpath in xyz.jar is incorrect. To save from disaster, I'm updating the execution commands to use: java -classpath path/abc.jar:etc instead of java -jar The problem is that xyz.jar malfuntions unless abc.jar is NOT on the classpath. When abc.jar is removed the program executes correctly, and no exceptions are

emacs slime-connect version of clojure doesn't lookup the $CLASSPATH

时光总嘲笑我的痴心妄想 提交于 2019-12-12 17:16:09
问题 I need to use my clojure functions with slime-connect. And I put all my libs in the $CLASSPATH. As I learned from this question. I used the following command to check the CLASSPATH for current environment, and I found none of my $CLASSPATH is used. How can I attach my class path for my clojure with emacs/slime-connect? I installed my emacs/leinigen as asked and answered here. (doseq [p (.getURLs (java.lang.ClassLoader/getSystemClassLoader))] (println (.getPath p))) /Users/smcho/bin/leiningen

JDBC driver not found error in monkeyrunner/jython

懵懂的女人 提交于 2019-12-12 17:15:34
问题 I need to Insert something in the DB . im using JDBC as a connector, jython the script , mysql the DB and the script is running in CentOS . my code looks something like this: from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage from com.ziclix.python.sql import zxJDBC db=zxJDBC.connect("jdbc:mysql://XXX.XXX.XXX.XXX:3306/dbname","USER","PASSWORD","org.gjt.mm.mysql.Driver") c=db.cursor() c.execute("INSERT INTO tablename values ('X','X','X')") before that, I downloaded