Win7 Double-click the method to run the jar file

Source: Internet
Author: User

Select the default program:. jar file Right-click, open-> Select default program-> Browse, select JRE under Bin file Javaw.exe.

Edit registry: Hkey_classes_rootapplicationsjavaw.exeshellopencommand, modify the data value to [D:program filesjavajdk1.6.0_ 21jrebinjavaw.exe '-jar '%1 '] (in square brackets, add –jar only before "%1" of the original value).

or run the following command:

XP executable jar file should be able to directly open the bar, the following is the online turn, first prepared:

1 Open My Computer-> Tools-> Folder Options

2 Select a file type in a tab in Folder Options--> Click the New button--> enter the extension jar (note that there is no "." here)

3 Select the new JAR file---> click Advanced

4 Click the New button--> the application where the operation name is named Open to perform the selection JAVAW location C:Program FILESJAVAJDK1.6.0_10JREBINJAVAW

5 Note The JAVAW here is jrebin under the JAVAW c:program Filesjava installed Java directory for me, depending on your installation path

6 Click OK and then edit now to see that the execution program becomes "C:Program Filesjavajdk1.6.0_10jrebinjavaw"%1

7 Change it to "C:Program FILESJAVAJDK1.6.0_10JREBINJAVAW"-jar%1 click OK.

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.