Java Executable Jar Hello.java Package Hello; public class Hello{
public static void main(String[] args){
System.out.println("hello wolrd");
}
}
/hello/ hello.class javac-d. Hello.java./hello/ hello.class javac-d
Jar jar CVF hello.jar./hello/ hello.class If you run the jar command at this time, you will get an error [there is no master manifest attribute in hello.jar]
Unzip the JAR file and find MANIFEST.MF. Open it with a text editor and add the following line [important] main-class: hello.hello
4. Copy the edited MANIFEST.MF file to the hello.class equivalent directory. Jar CVFM hello.jar./hello/MANIFEST. Mf./hello/ hello.class