Using java, cmd and batch files -
i pretty much java noob, fair in javascript , other web based coding languages. read few chapters of book on java year ago, , wrote few basic programs. said, improve ought @ filling in gaps using other knowledge. essentially, have learned how write batch files , utilize java in them trial , error, on lastly few hours. problem follows. have both 64 , 32 bit jre installed on computer, want open minecraft 32 bit (it defaults 64). yes, seems easy. write old batch looks this:
@echo off java -d32 -jar minecraft.exe pause
i save run.bat , maintain in folder minecraft.exe, when open it, says cannot open jarfile minecraft.exe. aware .exe not jarfile have seen identical code used allocating more memory server, worked
-jar minecraft_server.exe
why work there? , how can prepare problem?
further information: "java" works operation in cmd, , path variable leads 32 bit anyway.
thank you.
thanks read question or answer, , immibis helpful comment. have resolved issue after time. reassigning path variable, (delete , replace), changing batch file read
@echo off java -d32 -jar minecraft.exe pause
it removed need alter directory
cd "...path..."
code. resolved issue.
java batch-file cmd minecraft
No comments:
Post a Comment