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.