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 ?
posted 15 years ago
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
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads