Error: Unable to access jarfile craftbukkit.jar Press any key to continue . . .

Discussion in 'Bukkit Help' started by Bobet124, Aug 14, 2012.

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

    Bobet124

    Please help when I try to start my server it says
    Error: Unable to access jarfile craftbukkit.jar
    Press any key to continue . . .
    I did have a server before but now its just not working
    I tried this
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE

    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    and that and it doesent work ^ Note the first once it has @ECHO OFF Too it just didnt let me show it please help!
     
  2. Offline

    Nghtmr9999

    You probably forgot to rename the new jar to "craftbukkit.jar"
     
  3. Offline

    Bobet124

    I renamed it craftbukkit.jar and still it doesent work
     
  4. Offline

    Nghtmr9999

    And the .bat file is in the same place as the jar?
     
  5. Offline

    Bobet124

    In the same folder? Yes
     
  6. Offline

    Xmillsa

    "Error: Unable to access jarfile craftbukkit.jar"
    This means it can't find craftbukkit.jar
    Please make sure the craftbukkit file you downloaded is named "craftbukkit.jar" and also make sure the run.bat file is in the same folder as craftbukkit.jar
    (Pretty much just been covered :p)

    Read below:

    If it's still not working, try putting this in the run.bat and tell us what it says:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    dir /B *.jar
     
  7. Offline

    Bobet124

    Still doesn't and do I just add the

    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    dir /B *.jar

    into the run.bat or delete the whole code and put in SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    dir /B *.jar?


    And sometimes when I try to start it, it says The system cannot find the path specified.
    Press any key to continue . . .

    It doesent let me see what it says like it dissapears in honestly a milasecond

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

    Xmillsa

    Replace the entire run.bat with that text, save it and then run it.
    It should out one line of text, simply copy and paste, or write it here.

    Oh sorry, add PAUSE to the end of the file :p

    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    dir /B *.jar
    PAUSE
    
     
  9. Offline

    Bobet124

    Says craftbukkit.jar.jar
    Press any key to continue . . .
     
  10. Offline

    Xmillsa

    Remove .jar from the end of craftbukkit.jar and try again.

    You need to enable extensions so you can actually see the real .jar :p (It's why it shows 2 when using that command.)
     
  11. Offline

    Bobet124

    Now it says
    craftbukkit.jar
    Press any key to continue . . .

    Btw I really appreciate the help so far

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

    Xmillsa

    Now simply replace the run.bat file text with the old text:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    Hopefully your server should now be running.
     
  13. Offline

    Bobet124

    Thanks now it does I appreciate the help so much you're awesome!
     
  14. Offline

    Xmillsa

  15. Offline

    Bobet124

    Kk thanks added it to bookmarks
     
  16. Offline

    Lilliputian

    I had the same problem with Bobet and I tried everything here but now it says:
    Unable to find the specified path...
    Press any key to continue.

    Pls help. Thks.
     
  17. Offline

    Destroshard

    Hi i Need some help i'm seeing some players i think using the new 1.4.2 Development build for craftbukkit and for some reason my server that i did have running is now just saying Error: Unable to access jarfile craftbukkit.jar. I have tried everything i know about java and path variables and matching my batch with my version of craftbukkit and everything is the way its suppose to be and still i get this message. does anyone know what is wrong here?
     
  18. Offline

    Mobium

    I am having the same problem as Lilliputian and i really need help. PLEASE RESPOND! Thanks
     
  19. Offline

    Tysorowe

    IT worked thanks!
     
  20. Offline

    xEpicTaco

    Very old thread, but I'll reply anyway. Most of the issues are caused by the heading to the file. All you actually need is:

    Code:
    @echo off
    java -Xmx2G -Xms2G -jar craftbukkit.jar
    pause
    and that always works for me, good luck!
     
Thread Status:
Not open for further replies.

Share This Page