posted 24 years ago
Hi,
There are two ways to do that.
1)You need specify the class name which contains the main
method.
java -jar myjar.jar mainclass
2)Use a manifest file when you jar you java files.
jar cvfm myjar.jar manifest.mf *.class
Hope this helps.
qionghua