Moved Server, cannot run now

Discussion in 'Bukkit Help' started by Dwarfdude77, Aug 10, 2014.

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

    Dwarfdude77

    Hey guys, I had a bukkit server set up and it worked on my laptop. I then built a new desktop and transferred the server to that. I thought that i set up everything right to go with the transfer, but everytime i start it i get this error:


    C:\Users\*********\Desktop\Server\Bukkit 1.7.9>java -Xmx1024M -jar bukkit.j
    ar -o true
    'java' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\*********\Desktop\Server\Bukkit 1.7.9>PAUSE
    Press any key to continue . . .
     
  2. Offline

    daavko

    Dwarfdude77 What OS are you using on your desktop? And is it 64bit or 32bit?
     
  3. Offline

    Dwarfdude77

    I am using windows 8 64 bit on my desktop, windows 7 64 bit on my laptop
     
  4. Offline

    daavko

    Dwarfdude77 And do you have 64bit Java on your desktop? I also had this problem and it was solved by installing 64bit Java, previously had 32bit.
     
  5. Offline

    Dwarfdude77

    daavko How do I find that out? Should I just reinstall java 64 bit, and if i do, will it overwrite all previous versions?
     
  6. Offline

    daavko

    Dwarfdude77 Open command prompt and write "java -version". If output looks similar to this, you have 64bit Java:
    Code:
     C:\>java -version
    java version "1.6.0_25"
    Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
    If you have 32bit Java, it should look similar to this:
    Code:
     C:\> java -version
    java version "1.6.0_26"
    Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
    Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
    Notice that 64bit Java outputs "64-Bit Server VM", but 32bit Java outputs "Client VM".
    And I don't know if 64bit Java overrides 32bit when you install it...I think not.
     
  7. Offline

    Dwarfdude77

    In cmd:
    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. All rights reserved.

    C:\Users\Cameron Palmer>java -version
    'java' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\Cameron Palmer>
     
  8. Offline

    Gamecube762

    Dwarfdude77 Try updating Java, if the error continues, replace "java" in the bat with (with quotes)
    Code:
    "%ProgramFiles%\Java\jre7\bin\java.exe"
     
  9. Offline

    Dwarfdude77

  10. Offline

    Gamecube762

    Dwarfdude77 In your start.bat, you have
    Code:
    java -Xmx1024M -jar bukkit.jar -o true
    You would want to replace "java" with what I posted above.
     
  11. Offline

    Dwarfdude77

    Gamecube762 Ok...? This is what my Start.bat looks like now
    Code:
    "java" -Xmx1024M -jar bukkit.jar -o true
    PAUSE
     
  12. Offline

    Gamecube762

    Dwarfdude77 Replace "java" with
    Code:
    "%ProgramFiles%\Java\jre7\bin\java.exe"
    It should look like
    Code:
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -jar bukkit.jar -o true
    PAUSE
     
  13. Offline

    Dwarfdude77

    Gamecube762 Aaaaaaaahhhh, it all makes sense now.

    My bat file now looks like this:
    Code:
    C:\Program Files\Java\jre7\bin\java.exe -Xmx1024M -jar bukkit.jar -o true
    PAUSE
    My error message now looks like this:
    Code:
    C:\Program Files\Java\jre7\bin\java.exe -Xmx1024M -jar bukkit.jar -o true
    PAUSE
     
  14. Offline

    Gater12

    Dwarfdude77
    Did you add your java bin path to your PATH environment variable?
     
  15. Offline

    Dwarfdude77

    Gater12 .....I thought so... remind me how to do that again?
     
  16. Offline

    Gater12

    Dwarfdude77
    Computer Properties -> Advanced -> Environment Variables.

    There should be a Path or PATH variable. Add onto it with the your java bin path. Remember, separate paths with ;
     
  17. Offline

    Dwarfdude77

    Gater12 Ok, I put
    Code:
    C:\Program Files\Java\jre7\bin\java.exe
    into the PATH variable, and I get the same error. (Yes, I did save it)
     
Thread Status:
Not open for further replies.

Share This Page