Solved Bukkit RUN.bat file problems!

Discussion in 'Bukkit Help' started by MarcusOy, Apr 11, 2013.

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

    MarcusOy

    Hi, I'm fairly new to this forum. I wanted to make a Bukkit server. I downloaded craftbukkit-1.5.1-R0.1.jar and created a text document with the code used to make the server starter
    Code:
    java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true
    PAUSE
    I did Save as... and made it into a batch file. When I run it, the following error happens (added echo off to hide command line crap):

    [​IMG]

    I need help with this problem. Here is my system specs:
    Windows 7 x64
    Over 500 GB in storage
    Newest Java (I literally updated just now)
    6 GB of RAM
    I think thats all I have to list for now
    Thanks!
     
  2. Offline

    TnT

    Its craftbukkit-1.5.1-R0.1.jar not craftbukkit-1.5.1-RO.1.jar
     
  3. Offline

    MarcusOy

    Still does the same thing. Maybe the batch file is not looking in the right directory?
    Edit: wait, are you talking about the post?
     
  4. Offline

    MysteryManX

    Have you installed both 32 & 64-bit versions of Java?
     
  5. Offline

    Anonymous1995

    I have the same problem, dude
     
  6. Offline

    MarcusOy

    I have x64 java
     
  7. Offline

    Jordenjj

    Rename the file to craftbukkit.jar only and adjust the name in the .bat file. It should work.
     
  8. Offline

    IamGhost

    Try this, rename the .jar for craftbukkit then use
    Code:
    java -Xms1024M -Xmx1024M -jar craftbukkit.jar
    PAUSE
     
  9. Offline

    MarcusOy

    I tried this before this post, no luck.
    Edit: There was a difference in code comparing to the actual one I used. Still, no luck.:mad:
    [​IMG]
    Edit again: should I put a directory path of the .jar? Maybe that will work.
     
  10. Offline

    MarcusOy

    Solved. After a lot of researching and frustration, here is the code I used:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    Hope this will help anyone having these problems![cake]
     
  11. Offline

    Mastergle

    Hey it helped i no longer get the "java is not recognized as an internal or external command" Text but now i won't show up on minecraft the my server is up even though the .batch file thing says it is
     
Thread Status:
Not open for further replies.

Share This Page