"The system cannot find the path specified" problem

Discussion in 'Bukkit Help' started by Apoca, Apr 28, 2011.

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

    Apoca

    Whenever I run my RUN.bat, I get this in the command prompt.

    I've searched around and I believe I've looked at every thread that has had the "Cannot find path specified" problem, but I can't find anything to fix it.

    E:\Program Files (x86)\Java\jre6\bin\java.exe is where my Java.exe is.

    C:\Users\Jordan\AppData\.minecraft\minecraft_server is where I keep all my server files, and where I have craftbukkit-0.0.1-SNAPSHOT.jar and the RUN.bat

    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
    PAUSE
    
    That's the contents of my RUN.bat



    My computer is running Windows 7 Home Premium. I have an SSD, which is where I keep my OS. It is the "C:" drive. My HDD, where I keep most everythingelse, is the "E:" drive.

    I can run the regular minecraft server fine.

    I tried the "newb-friendly" way, and I get the same problem.

    I'm 90% sure (I might be blind and/or incredibly stupid... I think one of those is likely, though..) that I don't have the .jar.jar problem, as I have the "Hide file extensions" turned off, and it just shows one .jar after SNAPSHOT.


    Any help would be really appreciated.
     
  2. try this:

    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "E:\Program Files (x86)\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
    PAUSE
    
     
  3. Offline

    Apoca

    That worked! :D Thanks a lot
     
  4. Offline

    reddude05

    I tried it but it doesnt work
     
  5. Offline

    Cronkz

    I have the same problem but when i put in your code this comes up: java blablabla is not a intern kommando help plz
     
  6. Offline

    BenFudge

    Ok this took me a bit but I figured it out. For people having this issue, check your computer specs to see if they match mine to see if you can follow my steps. If you cant, try to edit them so they could fit your situation.

    BE SURE TO READ THIS ALL WORD FOR WORD! THIS IS USEFUL SHIZ NIZZ

    Windows 7
    64 bit operating system
    Java 6
    Thats all you really need.

    The path is where your java.exe file is located, and in order to start the server, craftbukkit needs to access java in order to run the counsel [little black box : ) ].

    My java.exe is located at
    OS (C: )/Program Files (x86)/Java/jre6/bin/java.exe
    While the default craftbukkit run.bat only provides users that have the path
    OS (C: )/Program Files/Java/jre6/bin/java.exe

    The default craftbukkit run.bat file is missing the (x86) for 64 bit OS users. Basically you need to right click and edit your run file, and what looks like this (the default craftbukkit provided)

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

    Should look like this

    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-1.0.1-R1.jar
    PAUSE

    Take a moment to notice and understand the red and underlined text so you know where the issue took place and you can fix it in future updates.

    If you have any questions contact me on bukkit or email :)
     
    coggy11 likes this.
  7. Offline

    coggy11

    thanks ben that worked for me
     
  8. Offline

    Amaster123

    Ben that didnt work for me. I did what you said but when i try to run my server it says all these random stuff instead of like, Preparing spawn or something like that. Also in my bukkit folder i have thecraftbukkit-1.1-R1-SNAPSHOT and the RUN.bat and this random New Text Document. Do i need to add anything or did i do something wrong?
     
  9. Offline

    craton765

    I had the same problem amaster but its because the code ben use is out dated try this
    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-1.1-R4.jar
    PAUSE
     
  10. Offline

    dinamitedigger

    thx ben u really saved me had a busy server crashes with the same prob (i really freaked out then):):):)

     
  11. I'm having this same problem but nothing is working. I have jre6 and I'm trying to run a craftbukkit server but changing it to "ProgramFiles(x86) doesn't work, and I'm sure that the run.bat is in the same place as my craftbukkit.jar. Here's the code:

    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "C:\ProgramFiles(x86)\Java\jre6\bin\java.exe" -Xmx4096M -Xms1024M -jar craftbukkit.jar
    PAUSE
    I'm running on a 64 bit Windows Vista and I've already tried inserting a path definer:
    ;C:\Program Files (x86)\Java\jre6\bin
    Nothing seems to work and I'd appreciate if someone knew how to fix this.
     
  12. Offline

    Lilla

    Can't get it working, I got Java6 on Win7 64bit.
    Got my java in C:\Program Files (x86)\Java\jre6\bin\java.exe
    Got my craftbukkit in D:\Minecraft Server\craftbukki.jar

    Any suggestions? :)

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

    Is what im trying
     
  13. Offline

    x_sam_boi_x

    OK so basically there are numerous methods of fixing this issue, if none of the above work i found that my system uses the java path, the problem i was having is that my system has both j6 and j7 installed so you may have j7 installed without realizing it so my advice would be try the code below.

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

    mattycfp

    I am having the same problem, none of the fixes worked. I updated Java today because Minecraft wasn't running right. I looked into the ProgramFiles folder, and I didnt see \Java\jre7\bin\java.exe in there...
     
  15. Offline

    GaVRieL

    You Have 32 Bit Or 64 Bit ?
     
  16. Offline

    qwerty12345

    Try logging in to play on your browser first. This will download all of the files that the .exe is looking for.
     
Thread Status:
Not open for further replies.

Share This Page