Running JAR Files with Double-Clicks in Windows 7 64-bit
Unable to launch JAR files with a double-click in Windows 7 (64-bit)? Here's how to resolve the issue:
Problem:
Double-clicking JAR files evokes no response. Attempts to modify the registry key (ftype) have been unsuccessful.
Solution:
If you previously assigned the ".jar" extension to a specific Java executable ("javaw.exe") via the right-click option, it's necessary to remove this registry setting.
Navigate to the following registry key:
[-HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.jar]
Run the following commands in an elevated Command Prompt (run as Administrator):
C:\> assoc .jar=jarfile C:\> ftype jarfile="C:\path\to\your\javaw.exe" -jar "%1" %*
After performing these steps, double-clicking JAR files should execute them using the "javaw.exe" executable.
The above is the detailed content of How to Run JAR Files with Double-Clicks in Windows 7 64-bit?. For more information, please follow other related articles on the PHP Chinese website!