Solve the problem that jar files cannot be double-clicked in Windows 7.

Source: Internet
Author: User

Problem: you cannot double-click to run the JAR file in Windows 7. That is to say, there is no response after double-click. In addition, WinRAR and 360 are compressed under Windows 7. You can view the contents of the JAR file. However, you can run it directly in the command line !!

 

Solution:

  1. Select the default program: Right-click the jar package and choose "open method"> "default program"> "View". Select javaw.exe in the binfile under "jre" (for example, javaw.exe in C: \ Program Files \ Java \ jdk1.7.0 _ 04 \ bin ).
  2. Edit the Registry: hkey_classes_root \ applications \ javaw.exe \ shell \ open \ command, and change the data value to "C: \ Program Files \ Java \ jdk1.7.0 _ 04 \ bin \ javaw.exe "-jar" % 1 "(that is, you only need to add-jar to the original value ).

In this way, double-click the JAR file to run it directly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.