Win7 jar file does not open the way to solve

Source: Internet
Author: User

Win7 jar file does not open the way to solve

The first method:
Step one: Create a new text document, enter the content "Javaw-jar%1", and save it as a batch file, such as "Run.bat".
Step Two: Right click on the. jar format file and select its open mode for the above built Run.bat.
The jar will now run.
The second method:
The first approach solves the problem, but there are some shortcomings, and here's a better approach: fix the problem by modifying the registry.
Step One: Open the registry, start and run (or use the shortcut key win+r), enter regedit, determine
Step Two: Edit the registry: Hkey_classes_root\applications\javaw.exe\shell\open\command, modify the data value to ["C: \program Files\java\jdk1.6.0_ 21st
\jre\bin\javaw.exe "-jar"%1 "(in square brackets, just add –jar before"%1 "of the original value).
Step three: Select the default program:. jar file Right-click, open with, select default program, browse, check the JRE under the bin file Javaw.exe.

Win7 jar file does not open the way to solve

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.