"'java' is not recognized as a command"

Discussion in 'Bukkit Help' started by Ryushi, Dec 24, 2011.

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

    Ryushi

    I'm using the auto installer, btw.
     

    Attached Files:

  2. Offline

    cheese5505

    You do not have "java" in your PATH value. Search on Google "How to add Java to your PATH value"
     
  3. Offline

    Ryushi

    URL please, google hates me. Don't ask how. It just does for some odd reason.

    Yes, i tried to look.
     
  4. Offline

    cheese5505

    Well, for Windows 7/Vista: Start > Search "Environment" and click on the 2nd one > Click on "Environment Variables" > Find the variable "Path" in the System Variables section > Click edit. > Type in one of these:
    For 32 bit java 6:
    Code:
    ;C:\Program Files\Java\jre6\bin\
    (Exactly)
    For 64 bit system with 64 bit java 6:
    Code:
    ;C:\Program Files\Java\jre6\bin\
    For 64 bit system with 32 bit java 6:
    Code:
    ;C:\Program Files (x86)\Java\jre6\bin\
    For 32 bit java 7:
    Code:
    ;C:\Program Files\Java\jre7\bin\
    (Exactly)
    For 64 bit system with 64 bit java 7:
    Code:
    ;C:\Program Files\Java\jre7\bin\
    For 64 bit system with 32 bit java 7:
    Code:
    ;C:\Program Files (x86)\Java\jre7\bin\
    Remember, don't forget the ;

    EDIT: Did it wrong. Fixed Now.
     
  5. Offline

    Ryushi

    Nope. None of those work for me.

    Fuck this, i'm using notch's shit.

    btw, all i get by start searching is a environment class file.

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

    h0us3cat

    Just change java in your startup script to "C:\Program Files\Java\jre7\bin\java.exe"
    Or whereever you have java installed
     
  7. Offline

    Ryushi

    -sigh- off i go looking for a startup script....
     
  8. Offline

    nala3

    Install the latest Java and JDK, it should be automatically added to your system PATH if I remember correctly (plus java 7 is much faster :D )
     
  9. Offline

    Ryushi

    I wonder about that since i've been screwing around alot.

    And of course, still says the same thing. I can't even use the default program now, the port is suddenly unbindable.

    ...i bet i didn't even download the right things.

    and a bump.

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

    h0us3cat

    This
     
  11. Offline

    Taketheword

    Post two things: Your java download location: (example: "C;\Program Files\Java\jre6\bin\java.exe")
    and your startup script.
     
  12. Offline

    Ryushi

    Could YOU tell me what a start up script is?
     
  13. Offline

    Taketheword

    The startup script is the .bat file that you use to start up the server. Go to "Get Craftbukkit" and they will have a list of different startup scripts. Also a startup script can be a name used for the writing inside the console when you start your server. In this case I am using it for the .bat file script.
     
  14. Offline

    Ryushi

    So, i go get one of those and put the directory info in it?
     
  15. Offline

    Taketheword

    Are you trying to run a server of your own?
     
  16. Offline

    Ryushi

    Uh... yeah.

    and i did it manually and now it says unable to access jarfile.
     
  17. Offline

    pyraetos

    The batch file is simple, ensure you have this format:
    Code:
    javeDirectory parameters craftBukkitDirectory
    If you were unable to access the Jarfile, the CB directory was incorrect.
     
  18. Offline

    Ryushi

    One the autoinstall gives me:
    Code:
    @ECHO OFF
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64"  "%ProgramFiles%\Java\JRE7\bin\java.exe" -Xms1024M -Xmx2048M -jar "%~dp0craftbukkit.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86"  "%ProgramFiles%\Java\JRE7\bin\java.exe" -Xincgc -Xmx1024M -jar "%~dp0craftbukkit.jar"
    
    One i copied off the wiki:

    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit
    PAUSE
    And it is what it says, the one i copied that is.
     
  19. Offline

    pyraetos

    Think about it. Replace the word "craftbukkit" with the directory of and including the server's Jarfile.
     
  20. Offline

    Ryushi

    okay....

    Nope. Not even putting in the entire path to it works.

    I wonder how long this'll take...

    bump

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

    Taketheword

    Use this if your on XP:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit.jar
    PAUSE
    And rename your Craftbukkit jar in your server folder to "craftbukkit.jar"
     
  22. Offline

    Ryushi

    And on Vista?

    Man, i'm getting every answer but the one that works. This is hilarious.

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

    Ryushi

Thread Status:
Not open for further replies.

Share This Page