Home >Java >javaTutorial >How to Make a JAR File Run with a Double-Click on Windows?
How to Run a JAR File with a Double-Click on Windows
To execute a JAR file with double-click, follow these steps:
Check if the JRE is Installed and Upgraded
Associate JAR Files with Java
In the "Application used to perform action" field, enter the following:
C:\Program Files\Java\j2re1.4.2_04\bin\javaw.exe" -jar "%1" %
After completing these steps, double-clicking a JAR file should execute it using the Java runtime environment.
The above is the detailed content of How to Make a JAR File Run with a Double-Click on Windows?. For more information, please follow other related articles on the PHP Chinese website!