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)

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