I created a JAR file like this:
jar cf Predit.jar *.*
I ran this JAR file by double clicking on it (it didn\'t work). So I ran it from the
Java
class Hello{ public static void main(String [] args){ System.out.println("Hello Shahid"); } }
manifest.mf
Manifest-version: 1.0 Main-Class: Hello
On command Line:
$ jar cfm HelloMss.jar manifest.mf Hello.class $ java -jar HelloMss.jar
Output:
Hello Shahid