Jump to content

launcher.bat not working


Recommended Posts

When activiating the launcher.bat i get a cmd window saying this: 'java' is not recognized as an internal or external command, operable program or batch file


Why is this happening?



The batch file script is: java -Xmx4G -Xms2G -jar BTeam.jar nogui


other than adding more ram (which doesn't work as I activate the server directly from the Bteam,jar file) I didn't change anything





Link to comment
Share on other sites

One way is to point it directly to java, this just means that the java at the start of that sentence isn't in the windows default path.


So for me if I had that .bat file it would become;

"C:Program FilesJavajre7binjava.exe" -Xmx4G -Xms2G -jar BTeam.jar nogui

So you just need to navigate to where java is installed like I did there, and copy that location on the front (the quotation marks need to be added there so it knows to take the space in Program Files as part of the path and not the end of the command).

Edited by Loader
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...