I know this is a very common question, but I tried googling and got no helpful result. I'm trying to make a jar out of my "Main.class" file (made in NetBeans, but I'm not trying to make the jar with it)
I ran this command:
D:\NetBeans\trovanum3\build\classes\trovanum3>jar cf trovanum.jar *.class
And a .jar file spawned in that folder. I thought that would've worked, but it won't run.
I tried opening the jar file with an archive opener and inside it are the "Main.class" file and a "META-INF" folder containing a file named "MANIFEST.MF" The file contains this:
Manifest-Version: 1.0
Created-By: 1.6.0_22 (Sun Microsystems Inc.)
What could be the problem?