Jump to content
  • 0

java is not recognized as an internal or external comand


Question

Posted

Title: java is not recognized as an internal or external comand

Version: 3.1.2

OS: windows vista

Java Version: Version 7 Update 9

Description of Problem:

trying to set up a tekkit server, when opening the bat, i get:

Error Messages:

C:\Users\josh\Desktop\tekkit server>java -Xmx3G -Xms2G -jar Tekkit.jar nogui

'java' is not recognized as an internal or external command,

operable program or batch file.

C:\Users\josh\Desktop\tekkit server>pause

Press any key to continue . . .

Error Log:




2 answers to this question

Recommended Posts

  • 0
Posted

you have to add your java path to the PATH variable

Windows Vista

  1. Right click My Computer icon
  2. Choose Properties from the context menu
  3. Click Advanced tab (Advanced system settings link in Vista)
  4. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
  5. Reopen Command prompt window, and run your java code.
  • 0
Posted

Or find your java install (something along the lines of c:/program files/java/jre7/bin/java.exe)

And place that instead of the word Java

(Note you'll need the encase the path to java in ""'s)

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