Hi!
I have a jar in which is my application and a jar with dom4j;
I try to start my application as bellow:
java -classpath ./lib/dom4j-1.6.1.jar -jar httpclient.jar checkupdate
I get this exception:
Exception in
thread "main" java.lang.NoClassDefFoundError: org/dom4j/Branch
at com.httpclient.main.MainHttpClient.checkForUpdates MainHttpClient.java:87)
at com.httpclient.main.MainHttpClient.main(MainHttpClient.java:26)
If I use this line it works
java -classpath ./lib/dom4j-1.6.1.jar;httpclient.jar com.httpclient.main.MainHttpClient checkupdate
In the Manifest of the jar file the main class is correctly specified.
I looked inside dom4j-1.6.1.jar and the reported missing class is there.
I want to use relative paths.
Have anyone encountered this problem?
Thanks
[ June 29, 2006: Message edited by: David O'Meara ]