Ahh, the "Black Art" of the executable .jar. The .jar needs to be told which class holds the main() method. The Manifest holds this little bit of information and you can create it in TextEdit then graft it into the .jar afterwards.
1) You need an empty text file usually named manifest.tmp
2) the first lines of text should be:
"Main-Class: MyClassName.class <cr>
<cr>"
where you MUST have 2 carriage returns or it will not work.
3) Now graft the manifest in with a:
"jar cfm myJar.jar manifest.tmp"
4) you could then try to execute --or-- verify the manifest made it in with a
"jar tvf myJar.jar"
to list the .jar's contents
This whole process is a royal pain in the butt and rarely works the first time for me. I usually re-consult my notes, book and buddy in that order. Then swear profusely at the machine before realizing it has finally taken. The process is easier but flakier when you use an IDE to help with the .jar-ing process.
Good Luck!
[ 08-26-2001: Message edited by: AirSluf ]