![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
I have created a simple java problem that prints the date. The method of getting the date is do by referencing a class from an external jar file. The program works fine. I thought I would try to put the file in a Jar file. I archived the file using this as the manifest: Main-Class: test_jar test_jar is the name of the entry class (and only class in the jar file). The jar file is created with no problems. When I try to run the jar file i get an error. Running: java -jar test.jar Generates this error: I have tried adding test.jar to the class path, aswell as '.' . I understand that the error is telling me that it cannot find the entry class. I am guessing this is because I have stated a classpath. But how do I tell it to look at its self as well as externally. This is driving me mad. Can anyone help, please!!!
Replies:
|
Sponsored Links
|