http://www.cs.princeton.edu/introcs/85application/jar/jar.html that tutorial didnt work for me. The class file the envokes the start of my gui program is a static method. It seems to not recognize that this is the file with my MAIN method in it. I cannot get the program to start if i change this method so thats it no longer static. Y is this.. and what can i do about it? Im soo frustrated at this. Whats the point to learning java if i cant even make the programs installable for my users without going through a bunch of crap. I been tryin to figure this out since i posted this. I hear 40 different ways to do this. I will settle for the executable jar file but its not workin cause it gives me an error that the file i stated as the class file with the MAIN method in it is not the correct one. GRRR! This is mad! This is my first semester in java and I made a B but ill give it up quick if I cant distribute the programs i make easily! Thats just plain dumb.
here is the error i get when i try to run the .jar file. I probably just messed up the manifest file. Which knowing me .. isnt a hard thing to do. anyways here is the error message:
Failed to load Main-Class manifest attribute from C:\Program Files\Java\jdk1.50_02\bin\testWindow.jar
this is my Main-Class file
//********************************************
// This program creates an instance of the *
// Window class. *
//********************************************
[ April 27, 2005: Message edited by: Jason Collins ]