Solved Unable to access jarfile craftbukkit.jar

Discussion in 'Bukkit Help' started by Famzilla, Jul 7, 2013.

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

    Famzilla

    So a million threads have been created about this issue but none of them are actually working for me.

    Here is a screencap of what pops up: http://i.imgur.com/Hx83koA.png (the two cmd windows pop up then disappear near instantly)

    In there I have my .bat file that I use so you can see how I have it set up. As you can also see, I get 2 command prompt windows that pop up. That's how I know I'm getting this error. I've tried a million .bat files and none of them work. I've changed the file name a billion times and none of them have worked. I've reinstalled Java, both 32 and 64 bit, multiple times. I am running Windows 8 64bit Pro.

    I checked the checkbox so you can see my file name extension, so it's actually called craftbukkit.jar and not craftbukkit.jar.jar (when I uncheck it becomes just craftbukkit).

    I can rename the craftbukkit.jar to something like craftbukkit123.jar and it still doesn't work after fixing the .bat file too.

    I am using build 2807. It stopped working all of a sudden. BUT USING THE RECOMMEND BUILD DOESN'T WORK EITHER.

    The last thing that I changed that could have probably stopped it from working was changing the priority of the server to "above normal" in the task manager. I highly doubt that would have changed anything but apparently it did and there seems to be no way to fix it. I've rebooted multiple times to no avail.

    I've ran CCleaner to do a registry scan and fix all the problems, that didn't work but I still have it backed up. I'm running out of ideas on what to do. Maybe environmental variables? I can't exactly remember what that does but maybe that'll fix it? I'm not a complete novice at running a server but this is irritating and I can't find a fix anywhere.
     
  2. Offline

    303i

     
  3. Offline

    Famzilla

    No other builds work either. Not even the recommended build.
     
  4. Offline

    Kolugo

  5. Offline

    303i

    I've always been told to use this type of formatting for the bat file:

    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit.jar
    PAUSE

    Replace the Java location with the Java location on your machine if its different.
     
    Famzilla likes this.
  6. Offline

    Famzilla


    Tried it and it does not work.


    Amazingly that worked after trying it again but previously it didn't. Oh well it's fixed now.

    I believe it wasn't working because it was searching for the craftbukkit.jar where the cmd.exe was located.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
Thread Status:
Not open for further replies.

Share This Page