bat file help!?

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

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

    organikarocks

    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.
     
  2. Offline

    grant1222

    Can you post the full error message please? Can't help unless I can see it for myself.
     
  3. Offline

    Helichicken

    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.

    I'm sure ZeroZX4 is going to come around soon and tell you to use the gui XP

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  4. Offline

    organikarocks

    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 . . .

    thank you very much helichicken! you made it work!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  5. Offline

    Helichicken

  6. Offline

    Darq

    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
     
  7. Offline

    LHammonds

    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
     
  8. Offline

    ZeroZX4

  9. Offline

    Tummo

    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.
     
  10. Offline

    ZeroZX4

    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
     
  11. Offline

    Tummo

    Thank u run3 make that it works ;)

    thank u it works with run3 xD

    fail xD
    sry i had a bug

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
Thread Status:
Not open for further replies.

Share This Page