Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jars not finding class

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
I am having a lot of trouble with jars. I can make them - but I keep getting "could not find main class" from the JVM launcher?

This is really annoying, since I have done what the sun tutorial said. I don't think it's the carriage return after the Main-Class in the manifest?

manifest:
Manifest-Version: 1.0
Main-Class: Saving

then
jar cmf manifest.MF Saving.jar Saving.class

Then the errors on launch, what is goin on? - no error from jar compiler. ?
b2 - benbiddington@surf4nix.com
 
If you look in the Java(Sun) main forum section you will see a tab at the top called FAQ. Click in there and you will see a FAQ on how to use jar files...

good luck


ackka
ackka@mad.scientist.com
 
It's alright, sorted it out.
b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top