Creating a batch file, for simple javac and java command execution

前端 未结 11 2608
终归单人心
终归单人心 2021-02-15 14:18

It is a really simple thing but I cannot get my head around it. I have looked at plenty of StackOverFlow post and as well as on internet.

My goal is to create a .bat whi

11条回答
  •  南笙
    南笙 (楼主)
    2021-02-15 14:41

    hey I think that you just copy your compiled class files and copy the jre folder and make the following as the content of the batch file and save all together any windows machine and just double click

    @echo
    setpath d:\jre
    d:
    cd myprogfolder
    java myprogram
    

提交回复
热议问题