[SOLVED] Classpath with two jars not working
Hi,
I got a strange problem. I added my jar file to the classpath:
Code:
$export CLASSPATH=/home/username/yom/yom-parser/yom-updatedb.jar
All fine, executing it without a problem
Code:
$java mypackage.MyClass
But I need to use an additional, which I add:
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
After doing so, my class can no longer be executed however.
Code:
$java mypackage.MyClass
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: mypackage/MyClass
Where's the problem? Also tried ; instead of : in the classpath, no help.