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
You need to use the entry-point switch -e (with the name of the class containing the main() method) as such:
-e
main()
jar cfve file.jar Main Main.class Main$1.class Main$2.class