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
jar xf fileName.jarMETA-INF & Copyright.mk filesJAD.exe from google (Its Zip File)jad.exejad.exejad fileName.class (the class filename which u want to modify)fileName.jad file will get generate , rename it as fileName.javafileName.java (if its referring to some other class file configure it in eclipse accordingly)jar cf fileName.jar (* represents all the class files irrespective of directories) 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.
You need to use the entry-point switch -e (with the name of the class containing the main() method) as such:
jar cfve file.jar Main Main.class Main$1.class Main$2.class