Running JAR file on Windows

前端 未结 25 2150
故里飘歌
故里飘歌 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:26

    Create .bat file:

    start javaw -jar %*
    

    And choose app default to open .jar with this .bat file.

    It will close cmd when start your .jar file.

提交回复
热议问题