Solved Batch File

Discussion in 'Bukkit Help' started by sycron2000, Aug 1, 2012.

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

    sycron2000

    Hi,

    I've been trying to start a server,but when I open the batch file it says: 'java' is not recognized as an internal or external command operable program or batch file. I've tried a few times to solve this but have not gotten any solution. I changed 'java' in the batch file to the path to my java bin. I used program files (x86) in the route but should I be using just program files? I've got a 32 bit by the way if tha helps. Also do I need to Edit the path variables, or just anything in the environment variables I guess.

    Oh, and I'm running windows 7, my OS is x86 I''m pretty certain, and I have Java 7
    By the I've reposted this thread because last one went by with no reply.

    Ok thanks :D
     
  2. Offline

    Expozay

    Copy and paste everything inside that file into a code line here. I'll fix the batch up for you and it should work than.

    You can also try downloading Java Platform 7, JDK at the following link. This is what actually got my server running successfully with just using "java" instead of the whole directory line.
    http://jdk7.java.net/download.html
     
  3. Offline

    sycron2000

    Sure thing, though I'll have tiger back home though as I'm currently on vacation, but I'll either get you the information today or tomorrow morning.
     
  4. Offline

    Timasaurus007

    Hello, since this topic was related to the RUN.batch file, I have decided to write my problem.

    When I run the RUN.bat file, it comes up with 'Error: Unable to access jarfile craftbukkit.jar'
    I used the Java-7 code for the file:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    I'm running Windows 7, Ultimate, 64 bit and Java 7
    If possible, can someone tell me where I can get the craftbukkit.jar and where I place it?
    Has been solved.
     
  5. Offline

    jacklin213

  6. Offline

    sycron2000

    When I pasted in that text it's now coming up with the error: Cannot find path specified, am I ment to save it as something, or was I not supposed to delete the other text, which doesn't matter anyway because I saved it into a text document. Or am I supposed to do something else altogether...
     
  7. Offline

    michaelb10297

    try replacing "%ProgramFiles%" with "%ProgramFiles(x86)%"
     
  8. Offline

    andrewpo

    Make sure your batch file is in the same folder as your 'craftbukkit.jar' file.

    Failing that, try renaming 'craftbukkit.jar' to 'craftbukkit' in the batch file (NOT the actual craftbukkit file itself)
     
  9. Offline

    jacklin213

  10. Offline

    Timasaurus007

  11. Offline

    jacklin213

    mark as solved thanks
     
  12. Offline

    sycron2000

    Ok I'll try that link you gave me, but heres the contents of that batch file: @Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit
    PAUSE

    Just like you gave me except I change craftbukkit.jar to craftbukkit

    Lol he did but I didn't.

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

    jacklin213

    ohh sryz. where is your java installed? cause this is ment to work

    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    
    if not then try this

    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    put this in notepad save as "RUN.bat" rename your craftbukkit to craftbukkit.jar (show hidden extentions for this to not get craftbukkit.jar.jar) put the RUN.bat file in the same folder as your craftbukkit.jar file and click on RUN.bat and your done
     
  14. Offline

    sycron2000

    Lol, now the only thing I need to do is update it, I guess this thread is solved but could you still provide a link or just information on how or just what I should do to update it? Thanks sooo much for all your help!

    Oh and by the way, isn't the server folder ment to have a mods folder...

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

    jacklin213

    No that's only for a modded version of crafbukkit which has FML but is not supported on buukit forums

    Link to newest RB http://cbukk.it/craftbukkit.jar
     
Thread Status:
Not open for further replies.

Share This Page