i googled and searched for this item but coudnt find help
here's what i've:
a simple class Adivinha.class that compiles and runs perfectly
i wrote a m.txt (manifest) saying:
Main-Class: Adivinha.class
and inserted a new line at the end.
from the same dir, i made:
command line>jar cmf m.txt a.jar Adivinha.class
when i click on the .jar i get this error msg:
Could not find the main class. The program will exit.
note: i tried the same with a helloworld.class too
What am i doing wrong?
here's what i've:
a simple class Adivinha.class that compiles and runs perfectly
i wrote a m.txt (manifest) saying:
Main-Class: Adivinha.class
and inserted a new line at the end.
from the same dir, i made:
command line>jar cmf m.txt a.jar Adivinha.class
when i click on the .jar i get this error msg:
Could not find the main class. The program will exit.
note: i tried the same with a helloworld.class too
What am i doing wrong?