bat file help!?

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

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


    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


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


    Change the name of the Craftbukkit version to the one you're using.
    Code (Text):
    1. @ECHO OFF
    2. SET BINDIR=%~dp0
    3. CD /D "%BINDIR%"
    4. java -Xmx1024M -Xms1024M -jar craftbukkit-1.2.5-R1.0.jar
    5. 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


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


    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


    thank you very much helichicken! you made it work!
  7. Offline


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


    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


  11. Offline


    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

    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


    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

    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


    Thank u run3 make that it works ;)
  14. Offline


    thank u it works with run3 xD
  15. Offline


    fail xD
    sry i had a bug
Thread Status:
Not open for further replies.

Share This Page