Run.bat?

Discussion in 'Bukkit Help' started by JN_KING, Apr 23, 2012.

  1. Offline

    JN_KING

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok so this is how it all went down. after watching about a bizzilon videos on how to set up a run.bat file on a 32bit machine none of it helped. I have tried to rename the Reccomend build to craftbukkit.jar but it still does nothing. So after 2hours of being pissed of i came here looking for a soloution. So if you could please help me out with is bug. Thanks!
  2. Offline

    Rattar27

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    type this into a notepad document:

    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE


    and save this document as run.bat now place this file into the folder of your server. And then change the jar file of your build in your server folder to craftbukkit.jar
    now run the run.bat file and report what happens on here, error messages etc.

    P.S. what operating system are you using?
  3. Offline

    ZeroZX4

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    download bukkit gui from here
    http://dev.bukkit.org/server-mods/bukkitgui/

    download craftbukkit from here
    http://dl.bukkit.org/downloads/craftbukkit/view/01026_1.2.5-R1.0/


    follow this 3 steps
    http://i.imgur.com/J9ey6.png

    but if u really need/want to stay with bat files

    here are 4 different bat files
    http://www32.zippyshare.com/v/36778740/file.html
    http://www32.zippyshare.com/v/14686885/file.html
    http://www32.zippyshare.com/v/6449618/file.html
    http://www32.zippyshare.com/v/58488266/file.html

    1st u rename your craftbukkit.1.1.1.jar file to craftbukkit.jar

    than u put all of them in your bukkit folder and 1 of them will work for sure
  4. Offline

    JN_KING

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    My operating system is Windows xp
  5. Offline

    JN_KING

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Error message: Could not find specified file craftbukkit.jar
    so i go to my jar and rename it craftbukkit.jar nothing happens =(
  6. Offline

    JN_KING

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok lol i so messed up i was naming the craftbukkit jar craftbukkit.jar but than it would save the name as craftbukkit.jar.jar epic fail right? so i just named that file craftbukkit and it worked! And i thank all of u who tried to help me!
  7. Offline

    andrewpo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Since your issue in the Bukkit Help forums is resolved, please change the prefix of your topic title to Solved by going to Thread Tools then 'Edit Thread'
    [IMG]
  8. Offline

    kool999

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I think I am having a similar problem. I dont actually have the run.bat file in the server folder. I have done what you said, and in the cmd, it says: The system cannot find the path specified.

    PS. I am using Windows 7
  9. Offline

    MrCheeseiscool2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks it helped.

    This post has been edited 1 time. It was last edited by TnT Dec 18, 2012.
  10. Offline

    DaZYGaming

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    im using 64bit and it give me this error the system cannot find the path specified

    This post has been edited 1 time. It was last edited by mbaxter Jul 23, 2014 at 3:37 PM.
  11. Offline

    GamerAuthority

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    this thread is over 2 years old, but to fix your problem:

    I'm assuming you have java 7 installed on your machine so where it says
    %ProgramFiles%\Java\jre6\bin\java.exe

    change jre6 to jre7

    EDIT: What operating system are you on?

    This post has been edited 1 time. It was last edited by GamerAuthority Jul 24, 2014 at 10:17 AM.
  12. Offline

    LHammonds

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Well if you are using that batch file, no wonder. Part of it are for Linux, other parts for Windows.
    If your batch file is not sitting with the .jar it won't work because it cannot change to the folder with the craftbukkit.jar

    If you made the following folder:

    C:\Craftbukkit\

    And put "craftbukkit.jar" in that folder, this is what a good-working batch file would look like for a Java JRE 1.7 installation:

    C:\Craftbukkit\start-server.bat
    Code:
    CD /D C:\Craftbukkit
    "%ProgramFiles%\Java\jre7\bin\java.exe" -XX:MaxPermSize=128M -Xmx1024M -Xms1024M -jar craftbukkit.jar -nogui
    
    If your server folder is elsewhere, simply update the path to the correction location where you see:
    Code:
    CD /D <path.to.craftbukkit.jar>
    
    But make sure your path is not inside "Program Files" due to UAC Security issues and that your path does not contain special characters such as an apostrophe which would make java a bit upset.

    LHammonds

Share This Page