Forums Register Login

jar files

+Pie Number of slices to send: Send
i created 2 jar files - server.jar and client.jar.
when i invoke my client or server in this format
java -classpath client.jar suncertify.ClientClass
iam getting error
NoclassDefFoundError : ClientClass
All the classes are found with in the jar file.
How should i handle this situation ?
+Pie Number of slices to send: Send
Hi,
I'm fairly inexperienced with JAR files but I think your problem could be that in order to run an application packaged as a JAR file:
java -jar app.jar
where the 'main' class is in the JAR file manifest header.
For more information you should have a look at the JAR Trail of the Java Tutorial:
http://java.sun.com/docs/books/tutorial/jar/index.html
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 526 times.
Similar Threads
Access files outside jar file
Packaging
Problem with policy file, Security Manager
Where does the LockManager class lie ? db.jar or Server.jar ?
Interest not bound?
More...

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