Trouble Running CraftBukkit Server

Discussion in 'Bukkit Help' started by krk064, Jul 10, 2012.

  1. Offline

    krk064

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey guys, I am having trouble running my bukkit server. As far as I know, I have done everything correctly. I am running 64-bit windows 7 and 32-bit java (version 7 update 5) and Minecraft 1.2.5. I downloaded my server from here:http://wiki.bukkit.org/Setting_up_a_server#Windows
    (this is also where I am getting my instructions) by clicking the CraftBukkit - Recommended Build link near the top of the page. My filename looks like this: craftbukkit-1.2.5-R4.0. I placed this file in a new folder on my desktop titled "My Server". Then, I opened up a new notepad document and copy+pasted this in from the wiki:
    @ECHO OFF
    color 0a
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    echo.
    echo What Java Version you Are Using (6 or 7)???
    set /p JR=jre
    set JR=jre%JR%
    echo Java Version Setted to %JR%
    Timeout /t 2 /nobreak >nul
    cls
    color 0a
    echo.
    echo Type CraftBukkit FileName without ext. [ex. craftbukkit-1.2.5-R4.0]
    set /p CBN=
    echo CraftBukkit Setted to %CBN%
    Timeout /t 2 /nobreak >nul
    cls
    color 0c
    echo.
    if %PROCESSOR_ARCHITECTURE%==x86 (
    echo Windows 32bit Detected!
    echo Program Directory Setted to %programfiles%
    SET PD=%programfiles%
    ) else (
    echo Windows 64bit Detected!
    SET PD64=%programfiles%
    SET PD32=%programfiles(x86)%
    echo.
    echo You want to Run Java from x32 or x64 ProgramFiles???
    echo x32 = %PD32%
    echo x64 = %PD64%
    set /p PGF=Run in x
    set PGF=x%PGF%
    if %PGF%==x64 (
    echo Program Directory Setted to %PD64%
    set PD=%PD64%
    ) else (
    echo Program Directory Setted to %PD32%
    set PD=%PD32%
    )
    )
    Timeout /t 4 /nobreak >nul
    cls
    color 0a
    echo.
    echo Starting CraftBukkit...
    Timeout /t 2 /nobreak >nul
    color 08
    "%PD%\Java\%JR%\bin\java.exe" -Xmx1024M -Xms1024M -jar %CBN%.jar
    color 0a
    echo CraftBukkit Stopped...
    echo.
    Timeout /t 5 /nobreak
    I typed this in because none of the other codes would work for me, (they would say "The system cannot find the path specified") even when I added (x86) to the "program files" since that was where my java program is located. When I ran the code above, the window did not display an error message, but said "What java version are you running <6 or 7>???" and under it "jre", where I typed in "7" and hit enter, since that is my version. Then it said, "Type CraftBukkit FileName without .ext", so I typed in craftbukkit-1.2.5-R4.0 and hit enter. Next, the window displayed the message "Windows 64 bit detected! You want to run java from x32 or x64 Program Files???" under it was "run in x" and I typed in 32, since that is my Java version, and hit enter. Finally, the window displayed "Starting CraftBukkit..." and "The System cannot find the path specified" and under it "Craftbukkit Stopped...". Under this was "waiting for 5 seconds, press cntrl+C to quit ..." and after the seconds counted down to 0 the window closed and nothing happened. Please help, I really want to run my bukkit server.

    This post has been edited 1 time. It was last edited by krk064 Jul 10, 2012.
  2. Offline

    TnT Trinitrotoluene Maximus Administrator Bukkit Help

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That is... horrific.

    Try this:
    Code:
    java -version 
    Do you see any output? If so, use code tags to format the output and reply with the result.

    If that works, you can try this as your batch file:
    Code:
    java -Xincgc -Xmx1G -jar craftbukkit-1.2.5-R4.0.jar
    pause
    

    This post has been edited 2 times. It was last edited by TnT Jul 10, 2012.
  3. Offline

    krk064

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    For anyone else who had this problem and has the x32 bit java, download the x64 bit java. I did this, and my problem was completely solved! Sorry for the trouble.
  4. Offline

    krk064

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Does anyone have any ideas on how I can run my server without having to type in what java version I'm using, whether I'm using Java x32 bit or x64 bit, and the name of my bukkit file?
  5. Offline

    zipron

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Really setting up a server is downloading the RB (dl.bukkit.org), put it in a folder, creating in the same folder a file called start.bat or run.bat or something else and paste this in it:
    Code:
    -AT-Echo OFF
    java -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    
    -AT- = @ but @Echo gives a link to a user on this forum...


    know that "craftbukkit.jar" in you .bat file reffers to the name of your server jar file, so if you called it otherwise, you should edit either the bat file or the jar name. also be sure to allow you server in your firewall (the first time it runs a confirmation box will popup)

    zip

    This post has been edited 1 time. It was last edited by zipron Jul 10, 2012.
  6. Offline

    TnT Trinitrotoluene Maximus Administrator Bukkit Help

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sometimes I wonder if people read the threads I post.
  7. Offline

    zipron

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    huh what do you mean?
  8. Offline

    krk064

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I read this, and it was indeed helpful because your response hinted (most likely unintentionally) that I had the wrong java version. Under your response to my problem, though, I posted two more things: That downloading x64 java had fixed my problem, and that I wanted to know if there was a way to run my server without typing in my java version, the name of my server file, and whether I wanted to use x32 or x64 bit java every single time.
  9. Offline

    TnT Trinitrotoluene Maximus Administrator Bukkit Help

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No, it was intentional. I like to point people in the right direction.

    Set your path variable correctly. Then you just need to type "java ...." instead of the full path.
  10. Offline

    krk064

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks, and that's a good thing to do I guess... It makes people feel smart XD
    Anyways, I will definitely try to set my path variable, and should I switch my batch file to the one you suggested, even if everything works out anyways?

Share This Page