Forums Register Login

NX:jar file path

+Pie Number of slices to send: Send
I create a jar file like :
1)jar -cvfm client.jar manifest_client.mf suncertify\client\*.class suncertify\db\*.class
2)jar -cvfm server.jar manifest_server.mf suncertify\server\*.class suncertify\db\*.class
manifest_client.mf like:
Manifest-Version: 1.0
Created-By: 1.4.0 (Sun Microsystems Inc.)
Main-Class: suncertify.client.client
manifest_server.mf like:
Manifest-Version: 1.0
Created-By: 1.4.0 (Sun Microsystems Inc.)
Main-Class: suncertify.server.server
So i create client.jar and server.jar Ok;
and last i run like this:
java -jar sever.jar ; But some errors occurs:
Exception in thread "main" java.lang.NoClassDefFoundError: suncertify/server/ser
ver
+Pie Number of slices to send: Send
Hi Steven
Dont the new exams require you to have a single jar file named "runme.jar" for both client and server?
Even if you do have that requirement, I think we should ignore it for the moment, and try and solve your current problem. Otherwise you are likely to have the same problem when you try and meet the requirement.
OK, obvious questions first.
Can you run the server by running:

If you run the command
Do you get the response:
Regards, Andrew
[ June 24, 2003: Message edited by: Andrew Monkhouse ]
[ June 24, 2003: Message edited by: Andrew Monkhouse ]
+Pie Number of slices to send: Send
"Steven"-
Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
All you need to do is to add your last name.
Mark
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 807 times.
Similar Threads
executable server.jar problem
jarring submission
appeared in exam, but still not upload my assign. ............need help
How to create/run client.jar
Classpath - help!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:08:11.