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

Discussion in 'Bukkit Help' started by Robosmasher303, Jun 22, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Robosmasher303

    When I open run.BAT in cmd it give me this message, but when I press a key it just closes, please help!

    Someone please help, I realize I probably should have given a bit more information so here.

    Im using windows 7, 64-bit operating system, and if any other information is needed I can post that as well.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2016
  2. Offline

    Gamecube762

    Its because java din't register itself to windows to be ran when you use java in cmd. You could go threw and set this yourself, or you could tell the .bat to use the Java.exe

    If you have 64bit Java7 installed:
    Code:
    "C:\Program Files\Java\jre7\bin\java.exe" <the -jar and stuff goes here>
    If you have 32bit Java7 installed:
    Code:
    "C:\Program Files (x86)\Java\jre7\bin\java.exe <the -jar and stuff goes here>
    If you have 64bit Java6 installed:
    Code:
    "C:\Program Files\Java\jre6\bin\java.exe" <the -jar and stuff goes here>
    If you have 32bit Java6 installed:
    Code:
    "C:\Program Files (x86)\Java\jre6\bin\java.exe <the -jar and stuff goes here>
     
  3. Offline

    Robosmasher303

    Ok, I'm really sorry but I'm kind of new to this stuff, so I put the code you gave me in cmd? Once again I'm really sorry about this.

    Thanks for the help, I figured it out but I wouldn't have without you, thanks a lot! :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2016
  4. Offline

    Bobcat00

    Use one of the command lines Gamecube listed. I suggest you install 64-bit Java if you haven't already.

    If you still have trouble, post the contents of your .bat file.
     
  5. or to save you an immense amount of trouble, use the advanced run.bat i made: http://pastebin.com/WLn79jGX.
    it works out what edition you have (32 or 64 bit java 7) if you have java 6, you need to update it.

    if you need help setting it up, i can explain it for you.
     
  6. Offline

    Not2EXceL

    Or just add java to your path instead.
     
Thread Status:
Not open for further replies.

Share This Page