Win7 can't double-click to open the jar file. What should I do? Win7 can't double-click the solution to open the jar file

  

Win7 can't double-click to open the jar file. What should I do? Recently, many users of Win7 system have reported that they cannot double-click to open the jar file. What is the cause of this? how should I solve this? In fact, you can't double-click to open the jar file because you can't find a program that can be opened directly. The jar file is a packaged file after the java program is exported, and can be run directly under the Linux system. So, under Win7 system, how to open the jar file? Let's get together!

The specific method is as follows:

1. Press “Win+R”Open “Run” window, enter “regedit” command and press Enter to open the registry;

2, find the following registration item HKEY_CLASSES_ROOT/Applications/javaw.exe, if you don't have one at the beginning, find the javaw.exe file in the resource manager, such as D:/Program Files/Java in my computer. /jre/bin/javaw.exe, run, or find a Jar file, select the open method, type D:/Program Files/Java/jre/bin/javaw.exe, and then select Open it;


3. Enter the following registration item HKEY_CLASSES_ROOT/Applications/javaw.exe/shell/open/command, and modify the default key value to “D:/Program Files/Java/jre/bin/javaw.exe&rdquo” ; -jar “%1”

By the above method, you can directly open the jar file by double-clicking. The above is the solution that Win7 can't double-click to open the jar file. I hope it can help everyone. Please pay attention to this website for more content!

Copyright © Windows knowledge All Rights Reserved