Jump to content
  • 0

'java' is not recognized as an internal or external command, operable program or batch file.


Question

Posted

Title: 'java' is not recognized as an internal or external command, operable program or batch file.

Version: 3.1.2

OS: windows 7 64 bit

Java Version: the latest version..

Description of Problem:

the command prompt that comes up after I hit "launch" in the tekkit server folder says this:

'java' is not recognized as an internal or external command, operable program or batch file.

I have tried re-downloading Java twice now, so it is the latest version. I'm not sure what to do now, and I have five friends that won't get off my dick about hosting it. (I'm the only one living at home while in college, therefore the only one able to host a 24/7 server, so that all can enjoy some gameplay whenever they want)

Please.. for the love of whatever may be holy, help me. :(

Error Messages:

'java' is not recognized as an internal or external command, operable program or batch file.

Error Log:




5 answers to this question

Recommended Posts

  • 0
Posted

Ahh... this one. Okay, well, as it turns out, the batch script they ship with the server may as well be a text file saying hello world for the good it does. Try this:

@ECHO OFF

SET BINDIR=%~dp0

CD /D "%BINDIR%"

"C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar tekkit.jar

PAUSE

If you are running 64 bit java, replace Program Files (x86) with Program Files

  • 0
Posted

i was having the same problem, tried the thing above mine and now i get an error message saying "the system cannot find the path specified"

is something else i done wrong? really dont wanna go back to vanilla mc just so i can play with my friends

  • 0
Posted

i stil dont get it where do we put code i tried under the launch thing and it said the same thing wtfkiity said plzzzzzzzz help me my dad is trying put he realt dont know

right click on the .bat file, click edit and put it where "java" is

Join the conversation

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

Guest
Answer this question...

×   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...