Running JAR file on Windows

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

    First set path on cmd(command prompt):

    set path="C:\Program Files\Java\jre6\bin"
    

    then type

    java -jar yourProgramname.jar 
    

提交回复
热议问题