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_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.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.
以上是如何在 Windows 7 64 位元中雙擊運行 JAR 檔案?的詳細內容。更多資訊請關注PHP中文網其他相關文章!