unable to access jarfile craftbukkit.jar in cmd

Discussion in 'Bukkit Help' started by wrex111, Apr 14, 2012.

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

    wrex111

    so when i double click run.bat it says unable to access jarfile craftbukkit.jar and underneath it says press any key and i do and it just goes away
     
  2. Offline

    andrewpo

    If your bukkit jar file is called craftbukkit-1.2.5-R1.0.jar rename it to craftbukkit.jar
     
  3. Offline

    wrex111

    ok thanks
     
  4. Offline

    andrewpo

    Has that fixed your problem? If yes, please change the prefix to solved.
     
  5. Offline

    wrex111

    its already called craftbukkit.jar
     
  6. Offline

    andrewpo

    Post your entire start script please. (the contents of the run.bat file)
     
  7. Offline

    wrex111

    Echo OFF

    SET BINDIR=%~dp0

    CD /D "%BINDIR%"

    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar

    PAUSE
     
  8. Offline

    andrewpo

    is craftbukkit.jar in the same folder as run.bat?
     
  9. Offline

    wrex111

  10. Offline

    andrewpo

  11. Offline

    wrex111

    i checked that website and i tried all the listed things and they dont work
     
  12. Offline

    harry88

    i am having the same problem. but i found out if you open the file with java it makes a world and a few other things including craftbukkit.jar yet when i click run it still says cannot acces craftbukkit .jar
    i hope this helps:)
    ps all i am trying to do is update bukkit because i have it still on a very early version that suprisingly still works with mc 1.2.5
     
  13. Offline

    Bknapp24

    same prob bro it sucks
     
  14. Offline

    scarecrow569

    I just had the same problem. My computer spawned a random world the same as harry. So i tryed deleting the craftbukkit.jar however it said that java was using it.

    So I restarted my computer, took the random 'spawned craftbukkit.jar' put in the place of my original server .jar ran the bat file and worked perfectly.

    tldr- runfile seems to connect to another craftbukkit.jar that is now in a different folder. restart your computer.
     
  15. Offline

    ashley

    try to paste this in you run.bat file (change ram usage values)
    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    java -server -Xmn4G -Xms8G -Xmx16G -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:parallelGCThreads=5 -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -jar craftbukkit.jar
    PAUSE
     
  16. Offline

    angloo2

    i copied+pasted what you said, but it said:
    "Error: Unable to access jarfile craftbukkit.jar"
    PLEASE HELP ME!!!!

    and it says when i put in:
    ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar (Rename to craft bukkit name).jar
    PAUSE

    it says:
    "Error: Unable to access jarfile <rename

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

    Deleted user

    ECHO OFF
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xincgc -Xmx1024M -jar "%~dp0craftbukkit.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xincgc -Xmx1024M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    PAUSE

    Put that in your start.bat or whatever you named your batch file.
    Rename your craftbukkit.jar to craftbukkit (no .jar at the end).
    If you're using Java 7, use the code.

    If you're using Java 6, use this code:
    ECHO OFF
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1024M -jar "%~dp0craftbukkit.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xincgc -Xmx1024M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    PAUSE

    Put that in your start.bat or whatever you named your batch file.
    Rename your craftbukkit.jar to craftbukkit (no .jar at the end).
     
  18. Offline

    angloo2

    thanks man! i really appreciate that thanks a lot!
     
  19. Offline

    OhxPJay10

    Thanks this really helped i wuz liked stumped for like a week finally something helped me
     
  20. Offline

    Snippy

    when i tried to use those , it sayed

    '"C:\Program Files <x86>\Java\jre6\bin\java.exe"' is not recognized as an internal or external command,
    operable program or batch file.
    Press any key to continue...
     
  21. Offline

    11puma

    I had the same problem but then i named it just craftbukkit not craftbukkit.jar
     
Thread Status:
Not open for further replies.

Share This Page