RUN.bat is not a valid WIN32 application

Discussion in 'Bukkit Help' started by calmchill13, Jun 29, 2011.

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

    calmchill13

    i recently changed from vanilla server to bukkit.
    BUT, i have done everything in the tutorial right.
    but the last step , "open RUN.bat" , doesn't work.
    it keeps saying : RUN.bat is not a valid WIN32 apllication.
    if anyone know how to fix this please help me :D
     
  2. Offline

    jtlcr777

    Well what did you type in the .bat file? it should look like this:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
    PAUSE
     
  3. Offline

    calmchill13

    that's exactly what i typed,
    i even copied it from the tutorial on the wiki :/
     
  4. Offline

    uvbeenzaned

    Well if you guys can't get this to work, I have a compiled batch file (attached). The server jar name needs to be: craftbukkit-0.0.1-SNAPSHOT.jar Or you could use my Bukkit tool. If those don't work , then you got a problem with your computer.
     

    Attached Files:

  5. Offline

    calmchill13

    the "bukkit.zip" file leads me to an error page.
    your bukkit tool ? open bukkit.exe : closes immediately
     
  6. Offline

    uvbeenzaned

    Sorry, I had to re-upload the file. Try again.

    Yes that link is my Bukkit tool but is not the same as the attached file.

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

    calmchill13

    all your files close immediatly
     
  8. Offline

    uvbeenzaned

    Wow. Did you get the right name for the jar? craftbukkit-0.0.1-SNAPSHOT.jar Otherwise IDK.

    What else can I do for ya?

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

    calmchill13

    well renaming the file doesn't work either.
    do you know how to fix this?
     
  10. Offline

    Matt Harkins

    Well when I first started I had a similar issue.
    What OS are you running?
    Did you put it in the directory of craftbukkit-0.0.1-SNAPSHOT.jar or whatever youve called it?
    Also when you saved it did you change the format to all files?
    If not you can always run a custom command line from Command Prompt like so
    Usually for me its like so:
    cd desktop
    cd Bukkit
    -java -Xmx1500M -Xms1500M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
    The 1500M represents how much ram your using
    While Xmx is your maximum I believe and Xms is your initial.
    Try it out and tell me your results.

    P.S.-You may be having an issue because of your system possibly being a 64 bit or it could be the other way around.
     
    calmchill13 likes this.
  11. Offline

    calmchill13

    WAIT WHAT?!:confused:
    your thingy is completely different then mine!:eek:
    mine is:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
    PAUSE
     
  12. Offline

    calmchill13

    please help :'(

    please?

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

    krinsdeath

    Firstly: calm down. Your name is not quite as indicative as you would hope!

    Second: Give us some more information. What OS (Windows 7? Vista? 32/64-bit?) are you using? What editor did you use to create your RUN.bat file? Is it actually saved as a batch file, or as something else? (Right click it and view properties to see what kind of file it is)

    Is the file set to read only? Is it contained in the same directory as your craftbukkit.jar?
     
  14. Offline

    calmchill13

    my OS is winsows XP (x86), i use Notepad ++ to create batch files.it IS a .bat file( it says MS-DOS Batch file)
    it isn't set to read only , and yes; it is saved in the same directory
     
  15. Offline

    krinsdeath

    Is your Windows XP up to date with the latest JDK/JRE, Visual C++ redistributable and service packs?

    Check that the java binaries are in the directory the batch file is pointing to (I can only assume they are, but they'd be in "C:\Program Files\Java\jre6\bin\java.exe"), and if they are, try running the absolute path (actually typing the whole thing) rather than resolving the system variable %ProgramFiles%.

    Also, try some pauses to see if the error is occurring directly when you run the batch, or when you execute certain commands inside the batch.

    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    PAUSE
    "C:\Program Files\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
    PAUSE
    
     
Thread Status:
Not open for further replies.

Share This Page