classpath

Problem compiling in Clojure

旧街凉风 提交于 2020-01-12 18:45:54
问题 I've been trying to compile a very simple test.clj in Clojure without any success. I have a thread on the Clojure Google Group with several responses, but nothing has helped. To quickly summarize, here is my clojure file: (ns test.test (:gen-class)) (defn -main [gre] (println (str "Hello " gre))) Basically it's the example file provided in the Clojure documentation. I have placed this file appropiately in clojure/src/test/test.clj , and should be able to compile with (compile 'test.test) ,

Cannot find class even when jar file is in working directory

徘徊边缘 提交于 2020-01-12 08:28:11
问题 I am struggling to get my Java program to run on AIX. I used Eclipse on Windows to create a runnable Jar file, jRams.jar below. I kept on getting a class not found error, until finally I put all the external libraries in the same directory. $ ls JAXB2_20081030.jar JAXB2_20110601.jar activation.jar asjava.jar commons-beanutils-1.8.3.jar commons-beanutils-bean-collections-1.8.3.jar commons-beanutils-core-1.8.3.jar commons-codec-1.5.jar commons-collections-3.2.1.jar commons-configuration-1.6.jar

Eclipse : Project properties don't show Build Path

。_饼干妹妹 提交于 2020-01-12 07:14:07
问题 My eclipse does not show the 'Java Build Path' option in a JAVA project's properties. The properties screenshot is attached above. What might be the reason for this ? On the left side lide, there should be an option for Java Build Path.. 回答1: You may get some help from any of these blogs How do I add a builder to a given project OR check this post Eclipse adding your own build command 回答2: To resolve this issue follow the below options 1) Go to Project root 2) Select " Project facets " from

Is possible to have 2 child threads with different classpath in each one?

我与影子孤独终老i 提交于 2020-01-12 06:24:08
问题 I have a "core" application that is adapter to process task. Each task is implemented in an adapter load by the core to process the task. My question is, is it possible to have different classpath in each adapter to precent class/jar conflict between adapters. Regards, 回答1: Indeed: URLClassLoader cl = new URLClassLoader(urls); Thread thread = new MyThread(); thread.setContextClassLoader(cl); thread.start(); 回答2: Use Thread.currentThread().setContextClassloader() and make a new URLClassLoader

Is possible to have 2 child threads with different classpath in each one?

梦想的初衷 提交于 2020-01-12 06:23:51
问题 I have a "core" application that is adapter to process task. Each task is implemented in an adapter load by the core to process the task. My question is, is it possible to have different classpath in each adapter to precent class/jar conflict between adapters. Regards, 回答1: Indeed: URLClassLoader cl = new URLClassLoader(urls); Thread thread = new MyThread(); thread.setContextClassLoader(cl); thread.start(); 回答2: Use Thread.currentThread().setContextClassloader() and make a new URLClassLoader

Base java classes still in the classpath during maven android build

两盒软妹~` 提交于 2020-01-11 12:51:17
问题 I'm having a rather strange problem caused by both the facts that the android java implementation differs from the sun java implementation and that the base java classes are still included in the classpath (all the way at the end) during a maven build of an android project. I think the solution is to not have the java classes on the classpath, but I can't seem to find a way to do this. Basically, there is a class called AbstractExecutorService in java.util.concurrent (in both android and java

ClassNotFoundException when instantiating an eclipse plugin

▼魔方 西西 提交于 2020-01-11 11:33:11
问题 I developed an eclipse plugin and I'm trying to install it on another instance of eclipse. When I run/debug my plugin as an eclipse application everything works correctly. The problem occurs only after I install the plugin through the update site I created. I created a very simple update site which includes a single feature with my plugin packaged in it. After installing using the update site I can see my plugin in the plugin directory under the eclipse install dir and it correctly contains

How to handle with CLASSPATH in Maven project?

折月煮酒 提交于 2020-01-11 03:19:06
问题 I am trying simple Maven app with Log4J ver 2-beta 9. In my pom.xml file I have these two dependencies (as is mentioned in Log4J Maven webpage): <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>2.0-beta9</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.0-beta9</version> </dependency> Eclipse sees Log4J library: But when I package the app and run it this Exception

Eclipse RCP with project dependency

末鹿安然 提交于 2020-01-10 20:05:31
问题 I have developed an RCP plug-in (not standalone), and a Java Project with library code that the plug-in needs to call. I have configured the Java Project in the same workspace. The plug-in has a project dependency on the Java Project. The code compiles (the plug-in does some stuff with the Java Project / library code). When I run the plug-in, I get a ClassNotFoundException: java.lang.ClassNotFoundException: com.mycode.ArgSet at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal

Eclipse RCP with project dependency

亡梦爱人 提交于 2020-01-10 20:05:11
问题 I have developed an RCP plug-in (not standalone), and a Java Project with library code that the plug-in needs to call. I have configured the Java Project in the same workspace. The plug-in has a project dependency on the Java Project. The code compiles (the plug-in does some stuff with the Java Project / library code). When I run the plug-in, I get a ClassNotFoundException: java.lang.ClassNotFoundException: com.mycode.ArgSet at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal