Running JAR file on Windows

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

    use .bat file:

    Put your command in a .bat file. here, your command will be java -jar path\yourJarName.jar. Something like: java -jar C:\workspace\myApplication.jar

    Save it and double click on bat file to run your jar.

提交回复
热议问题