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 tr
You need to set the Main-Class attribute in the manifest of your jar. See the java tutorial link below for details.
http://download.oracle.com/javase/tutorial/deployment/jar/appman.html