Start-run-enter "notepad" to open the text editor and enter the following:
| The code is as follows |
Copy Code |
|
Windows Registry Editor Version 5.00
; associated jar file, coded by Jerry Locke
; Delete Open list
[-hkey_current_user\software\ Microsoft\windows\currentversion\explorer\fileexts\.jar\openwithlist]
; register. jar file type
[hkey_classes_root\ . jar]
@= "Jarfile"
, setting. jar file type name
[hkey_classes_root\jarfile]
@= executable jar files
; Set. jar File Open Method
[Hkey_classes_root\jarfile\shell\open\command]
@= "\" d:\\java\\jre7\\bin\\javaw.exe\ "-jar \"% 1\ "%*"
[hkey_current_user\software\microsoft\windows\currentversion\explorer\fileexts\.jar\openwithlist]
"a" = "Javaw.exe"
"mrulist" = "a"
[hkey_current_user\software\microsoft\windows\currentversion\explorer\ Fileexts\.jar\openwithprogids]
"Jarfile" =hex (0):
[hkey_current_user\software\microsoft\windows\ Currentversion\explorer\fileexts\.jar]
"Application" = "Javaw.exe" |
Save as a "Registerjarfileext.reg" file, double-click Import.
Now, you open the jar file directly.
(This method is also suitable for associating other programs, just a little modification)