I have written a .java file, called Main.java, and have compiled it using the javac in the Windows Command Prompt. The compiler is creating multiple .class files (called Mai
Something's gotta tell the java which class should be started automatically.
That's the Manifest - see description here
You have to package the Manifest.mf in your jar.