模仿下面这种格式,修改注册表:
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\jarfile]
@="Executable Jar File"[HKEY_CLASSES_ROOT\jarfile\shell][HKEY_CLASSES_ROOT\jarfile\shell\open][HKEY_CLASSES_ROOT\jarfile\shell\open\command]
@="\"D:\\Program Files\\Java\\j2re1.4.1_02\\bin\\javaw.exe\" -jar \"%1\" %*"

解决方案 »

  1.   

    当然,要先添加这种文件格式才行,如下:Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\.jar]
    @="jarfile"
      

  2.   

    能否略微详细地解释一下
    [HKEY_CLASSES_ROOT\jarfile\shell\open\command]
    @="\"D:\\Program Files\\Java\\j2re1.4.1_02\\bin\\javaw.exe\" -jar \"%1\" %*"
    的语法,比如在CRCfile的defaulticon中值为E:\Program Files\Microsoft Visual Studio .NET\Setup\VSUpdate\vsupdate.exe,-2,那么"vsupdate.exe,-2"是什么意思?
      

  3.   

    And how can I create the same kind of file association while using Linux?
    Thank you!