Jump to content

Recommended Posts

Posted

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
pause

 

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

 

 

 

 

Posted (edited)

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...