bat file help!?

Discussion in 'Bukkit Help' started by organikarocks, Apr 10, 2012.

  1. Offline

    organikarocks

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hi, im stuck on the .bat file on making the bukkti server. This is really annoying and its pissing me off to my limits. I just want to make a server where my friends can get on and we can use the bukkit commands and Iconomy. The main problem is that the .bat file says that it cannot access jarfile craftbukkit.jar. Please Help.Also, if i paste another code, i get cannot find the path specified.

    This post has been edited 2 times. It was last edited by organikarocks Apr 10, 2012.
  2. Offline

    grant1222

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Can you post the full error message please? Can't help unless I can see it for myself.
  3. Offline

    Helichicken

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Change the name of the Craftbukkit version to the one you're using.
    Example:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    java -Xmx1024M -Xms1024M -jar craftbukkit-1.2.5-R1.0.jar
    PAUSE
    You don't have to use that but just where it says "craftbukkit-1.2.5-R1.0.jar" copy and paste the name of the bukkit.jar you're using into there.

    Make sure it has .jar after it also.
  4. Offline

    Helichicken

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm sure @ZeroZX4 is going to come around soon and tell you to use the gui XP
  5. Offline

    organikarocks

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ok heres a few:The system cannot find the path specified.
    Press any key to continue . . .

    Unable to access jarfile craftbukkit.jar
    Press any key to continue . . .

    Unable to access jarfile dp0craftbukkit.jar
    Press any key to continue . . .
  6. Offline

    organikarocks

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    thank you very much helichicken! you made it work!
  7. Offline

    Helichicken

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

    Darq

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Name your jar properly, craftbukkit.jar is what you have in the startup file, so name the jar "craftbukkit.jar". Make sure you're running the startup file from the same directory as the jar, assuming you haven't edited it.

    Edit: Late post is late

    This post has been edited 1 time. It was last edited by Darq Apr 10, 2012.
  9. Offline

    LHammonds

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I am not sure what "%~dp0" is supposed to do in the example bat dir (I know it is highly publicized), but it does not work on my Windows 7 machine.

    I have a detailed "How-To" thread that includes a batch file in the 1st post (click the spoiler button to see it) and other examples for setting up a server on a Windows machine and will also include info on how to setup a Linux server and transfer the Windows setup over to it.

    How to setup a custom CraftBukkit server
  10. Offline

    ZeroZX4

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

    Tummo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I've windows 7(64 bit ) and java 6 - 32bit

    What I've to write into this .bat data
    :?
    I don't understand the Guide, sry
    ^^

    I've inside:

    @Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx2048M -Xms2048M -jar craftbukkit.jar
    PAUSE


    but if I open it comes:


    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could nnot create ths Java virtual machine.
  12. Offline

    ZeroZX4

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    try out that gui i posted link to it above it really is better than bat files and easier to use and give u more control over ur server

    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

    but i see for u should work run3
  13. Offline

    Tummo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thank u run3 make that it works ;)
  14. Offline

    Tummo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    thank u it works with run3 xD
  15. Offline

    Tummo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    fail xD
    sry i had a bug

Share This Page