All Discussions > Steam Forums > Off Topic > Topic Details
ManicDavy Jun 1, 2014 @ 11:21am
I Need Help with Java Shortcut
So I created a .bat file that launches the Minecraft Server with more dedicated RAM & the Minecraft game itself. It works perfectly fine outside of Steam but once I add it to my steam library, it crashes. The only thing that runs is the actual game. In other words, the server gives me the error saying java is not a recognized internal blah blah blah. I've made sure I have the 64bit version of Java and also reinstalled it. Here is my code line
call "C:\Users\XXX\AppData\Roaming\.minecraft\Minecraft Ultra.exe" "C:\Users\XXX\AppData\Roaming\.minecraft\" java -Xmx4096M -Xms4096M -jar minecraft_server.1.7.5.exe
To add the game in Steam, I added a random .exe file then changed the target location to my .bat.
< >
Showing 1-4 of 4 comments
Sora Jun 1, 2014 @ 11:38am 
To get minecraft to work add a steam shortcut and in the shortcut on steam (right click, click properties) put for the TARGET:
"C:\Program Files\Java\JRE7\bin\java.exe" -Xmx4096M -Xms4096M -jar "C:\Games\Minecraft.exe"
Then put on the second line for START IN:
"C:\Program Files\Java\JRE7\bin\"

That will get the game to run with steam overlay and such...
I do not have java currently installed so the "JRE" path might be a bit wrong

As for the command not recognized... put at the top of batch "@echo on" and at the end put "pause" that would help you diagnose the problem..

Edit:
For the batch file you could also use at the top
cd "C:\Program Files\Java\JRE7\bin\"
then use
java (command)
Last edited by Sora; Jun 1, 2014 @ 11:40am
ManicDavy Jun 1, 2014 @ 12:47pm 
So I have this in the target:
"C:\Program Files\Java\JRE7\bin\java.exe" -Xmx4096M -Xms4096M -jar
"C:\Users\XXX\AppData\Roaming\.minecraft\minecraft_server.1.7.5.exe"
"C:\Users\XXX\AppData\Roaming\.minecraft\Minecraft Ultra.exe"

Only the first minecraft.exe will launch. The second doesn't load at all. I tried your @echo on but the box just closes.
ManicDavy Jun 1, 2014 @ 1:06pm 
I may not have been clear in the OP, but I'm trying to run the two programs at the same time with one shortcut
Sora Jun 1, 2014 @ 1:11pm 
I dunno how to do two at a time. at least not via steam, sorry =/
< >
Showing 1-4 of 4 comments
Per page: 1530 50

All Discussions > Steam Forums > Off Topic > Topic Details
Date Posted: Jun 1, 2014 @ 11:21am
Posts: 4