Run.bat open and disappear

Discussion in 'Bukkit Help' started by Zappyle, Feb 27, 2011.

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

    Zappyle

    Hi,

    It's my first message on the forums and I hope you guys will be able to help me. My problem is that my run.bat file that I created opens when i click on it, but it says : click anything to continue. When I do so, the command window just disappears and it keeps doing that. I downloaded craftbukkit as specified in the topic on bukkitwiki, I did all the steps necessary, I copied the 64-bits lines, because my computer uses 64-bit. I really dont know what to do.
    Thank you!

    A guy that wants to add mods to his already running server.
     
  2. Offline

    jududdar

    Post the contents of your batch file - you have a pause in there, like most do, that's what's making the press any key thing. I'm just wondering if it's in the wrong place.
     
  3. Offline

    Zappyle

    @ECHO OFF
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xms512M -Xmx512M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xms512M -Xmx512M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"

    PAUSE

    That is what I put in the notepad file that i save as .bat
     
  4. Offline

    jududdar

    Oh, wow there's a lot of finding stuff going on there. Roll something simple that's to the point:

    Code:
    @echo off
    "C:\Program Files\Java\jre6\bin\java.exe" -Xms512M -Xmx1024M -jar craftbukkit.jar
    pause
    This says to use 64-bit java, on a 64-bit machine, min ram 512, max ram 1024. This will also start it on a 32-bit OS. Tweak accordingly.
     
  5. Offline

    Zappyle

    ok i'll try that one. The one i posted was the one I found on wikiBukkit.
    I'll tell you if it has worked or not, I am away from home at the moment but I'll keep you updated throughout the rest of the day.

    Oh and I had another question, if i already have my running server, all i have to do is copy my world and paste it the the folder?
    Thank you!
     
  6. Offline

    jududdar

    I think so. To move a server, just copy the world file over, run craftbukkit once to generate all the other files, then stop it and edit your server.properties and everything accordingly. Hope this works! There are many other parameters you can throw 64-bit java, and I use a lot of extras, but I'm beginning to wonder the value of them as of late. :)
     
  7. Offline

    Zappyle

    now it says:
    unable to access jarfile craftbukkit.jar
    Click to continue.
     
  8. Offline

    TnT

    Chances are your Windows OS is hiding the file extensions. If so your file would be named craftbukkit.jar.jar. Rename the file to simple craftbukkit and try again.
     
  9. Offline

    happy111

    Have a problem too it doesn't open at all just a second can't read it .how to fix?
     
  10. Offline

    Mikecom32

    Or the batch file isn't sitting in the same directory as craftbukkit.jar

    Start a new thread.

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

    Rikama

  12. Offline

    1lann

Thread Status:
Not open for further replies.

Share This Page