In this tutorial, we will show you how to create a executable JAR – When you double click on it, it runs the defined main class in manifest file.. 1. AWT Example. Create a simple AWT Java application, just display label and print out some funny characte
To make a jar, you also need to create a Manifest File (MANIFEST.MF). For example, Manifest-Version: 1.0 Main-Class: JarExample Place the compiled output class files (JarExample.class,JarExample$1.class) and the manifest file in the same folder. In the co
How to make an executable jar file in Java. The jar (Java Archive) tool of JDK provides the facility to create the executable jar file. An executable jar file calls the main method of the class if you double click it. To create the executable jar file, yo
Post a Comment:
Showing 0 Comments: