Hello
java ranchers!
I've read the topics here about jar and suns tutorial about jar. Doesn't seems to get it right anyway.
I've created 2 classfiles in diffrent directory's (
testing protected etc ). The classes compile and it can be run without any compications. When I try too make a jar file it doesn't seems to work.
I've created the jar file like this
jar cmf classLoader.txt test.jar chat\test\test.class chat\test1\test1.class
in my classLoader.txt file it just say "Main-Class: chat\test1\test1". I have altso tested to just type "Main-class: test1" and "Main-Class: test1.class" and so on.
The mainfest.mf seems to be right and the jarfile looks fine , but when I try too run it like this:
java -jar test.jar I get an errormessage like this:
Exception in
thread main. NoClassDefoundError.
How come when it runs without jar?
Hope you can understand what I meen.
Cheers
------------------
Preparing for the Java 2 Certification exam
[This message has been edited by Snylt Master (edited July 10, 2001).]