Running JAR file on Windows

前端 未结 25 2183
故里飘歌
故里飘歌 2020-11-22 01:57

I have a JAR file named helloworld.jar. In order to run it, I\'m executing the following command in a command-line window:



        
25条回答
  •  误落风尘
    2020-11-22 02:38

    In regedit, open HKEY_CLASSES_ROOT\Applications\java.exe\shell\open\command

    Double click on default on the left and add -jar between the java.exe path and the "%1" argument.

提交回复
热议问题