Results 1 to 2 of 2
- 02-03-2011, 09:30 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
[SOLVED] Classpath with two jars not working
Hi,
I got a strange problem. I added my jar file to the classpath:
All fine, executing it without a problemJava Code:$export CLASSPATH=/home/username/yom/yom-parser/yom-updatedb.jar
But I need to use an additional, which I add:Java Code:$java mypackage.MyClass
After doing so, my class can no longer be executed however.Java Code:$export CLASSPATH=/home/username/yom/yom-parser/yom-updatedb.jar:/home/username/yom/yom-parser/lib/mysql-connector-java-5.1.3-rc-bin.jar
Java Code:$java mypackage.MyClass
Where's the problem? Also tried ; instead of : in the classpath, no help.Java Code:Exception in thread "main" java.lang.NoClassDefFoundError: mypackage/MyClass
Last edited by asdfjklö; 02-03-2011 at 10:02 AM.
- 02-03-2011, 10:02 AM #2
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Adding jars at runtime
By tbar0711 in forum Enterprise JavaBeans (EJB)Replies: 0Last Post: 02-17-2010, 07:25 PM -
Communication between two Jars
By Gijava in forum Advanced JavaReplies: 1Last Post: 06-26-2009, 04:59 PM -
More efficient in memory? Multiple Jars or Single Jars with lot's of Classes
By dark_cybernetics in forum New To JavaReplies: 0Last Post: 08-19-2008, 04:44 PM -
Preblem with JARs
By bizmut in forum EclipseReplies: 1Last Post: 06-04-2008, 05:41 PM -
Adding JARs to the classpath at runtime?
By johann_p in forum Advanced JavaReplies: 1Last Post: 06-26-2007, 10:42 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks