Home > Java > javaTutorial > Why Can't I Run JAR Files with a Double-Click on Windows 7 64-bit?

Why Can't I Run JAR Files with a Double-Click on Windows 7 64-bit?

Linda Hamilton
Release: 2024-11-16 08:05:03
Original
919 people have browsed it

Why Can't I Run JAR Files with a Double-Click on Windows 7 64-bit?

Running JAR Files with a Double-Click on Windows 7 64-bit

Unable to execute JAR files on Windows 7 64-bit through double-click? This article provides a solution to troubleshoot this issue.

Previously, the user implemented the 'ftype' command to associate JAR files with Java, but it didn't resolve the problem. Upon further investigation, it was discovered that a Windows Registry key may have been modified.

Troubleshooting:

  1. Navigate to the Windows Registry and remove the following key:
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jar]
Copy after login
  1. Open the command prompt and execute the following commands:
assoc .jar=jarfile
ftype jarfile="C:\path\to\your\javaw.exe" -jar "%1" %*
Copy after login

These commands will associate JAR files with Java once again, allowing you to run them by double-clicking.

The above is the detailed content of Why Can't I Run JAR Files with a Double-Click on Windows 7 64-bit?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template