• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar files

 
Reshma Das
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Steve Granton
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic