Error: Unable to access jarfile craftbukkit.jar

Discussion in 'Bukkit Help' started by coolio5462, Mar 4, 2012.

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

    coolio5462

    When ever I try starting up my server, the console gives me the error message "Unable to access the jarfile craftbukkit.jar". Can anyone help me?
     
  2. Offline

    FXHNTR

    coolio5462
    I'm assuming that you already have the craftbukkit build and everything else. So I'm only going to answer why you're getting that console message.

    Basically, you need to copy the name of the build, then paste it here, replacing the "craftbukkit.jar"
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    If you still get an error, then try adding (x86) after program files.
    Ex "%ProgramFiles(x86)%\Java\jre6\bin\java.exe""
     
  3. Offline

    coolio5462

    I wrote the run file as:
    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit-1.1-R6-20120301.142116-2
    PAUSE
    Now i get "Unable to access the jarfile craftbukkit-1.1-R6-20120301.142116-2"
     
  4. Offline

    FXHNTR

    try running it without the (x86)
     
  5. Offline

    coolio5462

    I did and the error came as:
    The system cannot find the path specified
     
  6. Offline

    coolio5462

    Anyone else have any other ideas or should i just hope that I don't get the same error when R5 comes out?
     
  7. Offline

    OneManHero

    A little late but the reason for the error and possibly future errors is because after " craftbukkit-1.1-R6-20120301.142116-2" there should be a ".jar"
    so it should say

    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit-1.1-R6-20120301.142116-2.jar
    PAUSE

    hope that helps
     
  8. Offline

    ZeroZX4

  9. Offline

    Lolmewn

    Oh Zero, you and your ever Bukkit Gui.
    And your posts without dots. Horrible, isn't it!

    Anyway: The problem is that you forgot to add .jar to the end of the filename, just like OneManHero said.
     
  10. Offline

    ZeroZX4

    cause i meet many ppl for who bat files dont work and i did not meet any 1 for who bukkit gui did not work

    dots for u

    [​IMG]
     
  11. Offline

    Lolmewn

    ZeroZX4 Oh no! Not Paint!
    *dies
     
  12. Offline

    ZeroZX4

    it was from google and it isnt paint
     
  13. Offline

    el_freakyfrog

  14. Offline

    ZeroZX4

    try without plugins
     
  15. Offline

    el_freakyfrog

    works fine without the gui mind you so its ported correctly, I did try without any plugins as you suggested and it still fails to start the server properly

    lol do i have to write a .bat file to start the gui with more memory? :p

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

    ZeroZX4

    what ?
     
  17. Offline

    el_freakyfrog

    k, this time i tried closing the gui with that pesky lil X at the top of all windows and each time I clicked it I got a different message after the first time
    I got this...
    7:02:54 PM [INFO] Starting minecraft server version 1.2.5
    7:02:54 PM [INFO] Loading properties
    7:02:54 PM [INFO] Starting Minecraft server on *:25565,

    after the second time this...7
    :03:15 PM [INFO] This server is running CraftBukkit version git-Bukkit-1.2.5-R1.0-b2149jnks (MC: 1.2.5) (Implementing API version 1.2.5-R1.0)
    7:03:15 PM [INFO] Preparing level "survival"

    and lastly....
    7:04:35 PM [INFO] Default game type: 0
    7:04:35 PM [INFO] Preparing start region for level 0 (Seed: -4723319227695099686)
    7:04:36 PM [INFO] Preparing start region for level 1 (Seed: -4723319227695099686)
    7:04:36 PM [INFO] Preparing spawn area: 8%
    7:04:37 PM [INFO] Preparing start region for level 2 (Seed: -4723319227695099686)
    7:04:37 PM [INFO] Preparing spawn area: 48%
    7:04:37 PM [INFO] Server permissions file permissions.yml is empty, ignoring it
    7:04:37 PM [INFO] Done (81.807s)! For help, type "help" or "?"
    7:04:37 PM [INFO] CONSOLE: Stopping the server..
    7:04:37 PM [INFO] CONSOLE: Stopping the server..
    7:04:37 PM [INFO] CONSOLE: Stopping the server..
    7:04:37 PM [INFO] CONSOLE: Stopping the server..
    7:04:37 PM [INFO] CONSOLE: Stopping the server..
    7:04:37 PM [INFO] Stopping server
    7:04:37 PM [INFO] Saving chunks

    Server Stopped...

    bad joke lol sorry

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

    ZeroZX4

    i have no idea what is ur problem ur confusing

    so tell me what is it again and what u done
     
  19. Offline

    el_freakyfrog

    I have a .bat file set up to start the server at max memory and works fine, server works fine, my girl and i play all the time, however I dl'ed the gui as i wasn't getting a console window. I understand software and how it needs a target and pointed the gui to my server file the .jar file not the .bat, as i noticed it didn't need the .bat file with the gui's onboard memory allocation. Mind you my server is ported correctly, as I can use the server still without the gui, however with the gui, I start the server and I cant connect and the server appears to be offline. When i close the gui, I get spammed with server start errors which is probally due to plugins not having been updated for the new 1.2.5 build, so I get the impression the gui is freezing up on me and failing to start the server correctly. Any suggestions?

    I removed the plugins that didn't work and the gui still seems to freeze after this "6:40:03 PM 182 recipes
    6:40:03 PM 27 achievements..." and only gives me the other messages after each click of the X that closes the window like the server is up and running but no one is able to connect when I use the gui. Without the gui, it works fine

    rebooting to see if that helps

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

    ZeroZX4

    and did u try without any plugins at all ? like no plugins in plugins folder ?

    so than we can say if gui will work for u anyway
     
  21. Offline

    el_freakyfrog

    yah i give up on the gui for now, even without any plugins it still fails to start the server
     
  22. Offline

    ZeroZX4

    in
    now change ur jar file name to craftbukkit.jar
    download all this 4 ran bat files
    http://www10.zippyshare.com/v/59676018/file.html
    http://www10.zippyshare.com/v/89517238/file.html
    http://www10.zippyshare.com/v/13520515/file.html
    http://www10.zippyshare.com/v/75829181/file.html

    and than 1 by 1 run them

    and for sure 1 will work

    ----------------------------

    u know u need to place bat files into same folder as crabukkit.jar dont u ?
     
  23. Offline

    el_freakyfrog

    your bat files wont work as is, cuz I have jre6 not 7, so I changed it all to jre6 instead and it did give me a console window thanks
     
  24. Offline

    ZeroZX4

  25. Offline

    Bertware

    This tool generates a .bat file for you: link (run as admin)

    if you don't want to use the tool:
    "[JAVA_INSTALLATION]" -xincgc -xmx1024M -jar "[JAR_FILE]"
    Pause

    Java installation is the path of java.exe, e.g. C:\Program Files (x86)\Java\Jre 6\bin\java.exe
    1024M is the amount of memory in MB to allocate, in this example 1024MB
    [JAR_FILE] is the name of your jar file, including the .jar. Example: craftbukkit.jar
    Pause will cause the console to display the output.
     
  26. Offline

    el_freakyfrog

    i wonder why the regular console doesn't seem to work, cheers tho, both of your bat files works for what i need, oh and i was using world guard and world edit for the longest time are there any other world editing plugins out there that are noteworthy?
     
  27. Offline

    coolio5462

    IT FINALLY WORKED!!! Thank you guys sooo much!!!

    But now I cant log into it. My read times out or I reach the end of the stream. Might it be because I don't have enough RAM to back it up?

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

    Buskaroo

    Unable to access boop.jar = You aren't in the right directory/using the correct name (It has to be case specific to the letter), it's a system error.
     
Thread Status:
Not open for further replies.

Share This Page