Running JAR file on Windows

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

    Making a start.bat was the only thing that worked for me.

    open a text document and enter. java -jar whatever yours is called .jar

    save as start.bat in the same folder as the .jar file you want to execute. and then run the. bat

提交回复
热议问题