You can now test your executable JAR file by clicking on the JAR file that has been created if it is a GUI application or by typing java -jar LabName.jar on the command line.
Step 4: Create a JAR file for a Java Application
You can now test your executable JAR file by clicking on the JAR file that has been created if it is a GUI application or by typing java -jar LabName.jar on the command line.