Windows cannot find '[Path]\run.bat'.

Discussion in 'Bukkit Help' started by Bac-Man, May 24, 2014.

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

    Bac-Man

    I've been running a bukkit server for over a year for my friends and myself with no problems. It's been months now since I last launched the server. When I try to run the 'run.bat' file to launch the server I get an error message saying "Windows cannot find 'C:\Users\[MyName]\Documents\Bukkit\run.bat'. Make sure you typed the name correctly, and then try again."

    I have searched the internet for hours, finding no solutions and prompting me to make this thread.

    The contents of 'run.bat' is:
    Code:
    java -Xmx1024M -jar craftbukkit.jar -o true
    PAUSE
    Nothing has been changed since I last ran the server months ago.

    I cannot think of any reasons to why this is happening, it may be something extremely simple that I have failed see. If any information is needed I will reply ASAP. Thanks for any help.
     
  2. Offline

    Bac-Man

    Still having same errors, getting desperate, someone pls help me. :'(
     
  3. Offline

    LHammonds

    Well, that message makes me think you created a shortcut to run.bat and the "run.bat" no longer exists. Maybe it was renamed or you moved the folder location.

    Use Explorer and browse to that folder, when you seen your batch file, double-click directly on it...make sure the file type is NOT "shortcut"

    LHammonds
     
  4. Offline

    Bac-Man

    Thanks for the reply, but this is not the case. The 'run.bat' is not a shortcut. The only thing I've done involving shortcuts is to make a shortcut on my desktop to my Bukkit server folder, and I'm pretty sure that didn't mess with anything in the actual folder.
    :)
     
  5. Offline

    ThatUltraSeal

    There is a file called craftbukkit.jar in the same folder as run.bat, correct?
     
  6. Offline

    Bac-Man

    Yep
     
  7. Offline

    ThatUltraSeal

    Can you show us your Path environment variable?
     
  8. Offline

    Bac-Man

    I've opened my environment variables with the help of Google. Unfortunately my technical skills end there. You'll need to guide me through the rest. (Thanks)
     
  9. Offline

    ThatUltraSeal

    Once you've opened your Enviorenment Variables window, in the bottom box scroll down till you see 'Path' and paste it's value here.
     
  10. Offline

    Bac-Man

    Here it is:
    Code:
    C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Java\jre7\bin;C:\Program Files (x86)\Common Files\Softimage;C:\Program Files\Common Files\Softimage;C:\Program Files (x86)\QuickTime\QTSystem\
     
  11. Offline

    LHammonds

    "Windows cannot find 'C:\Users\[MyName]\Documents\Bukkit\run.bat'. Make sure you typed the name correctly, and then try again."

    If you are not clicking on a shortcut then I have no idea why you are getting this message. Windows would not say it cannot find the "run.bat" file if you are actually clicking on that file. Are you running a batch file that calls another batch file? For example, a "run.bat" on your desktop that calls the run.bat in the path mentioned above?

    Again, this does not make sense if you are clicking on the file in the server folder.

    Maybe "run" is a reserved word...try renaming it to something like "start-server.bat" and see if that makes a difference.

    Something else to try is this, move the "Bukkit" folder that is in your documents folder to the root of C: so that is C:\Bukkit\run.bat

    Then try the batch file again. The problem might be special characters in the "[MyName]" that you cut out and are not showing us.

    If that still does not work (make sure you still have it in C:\Bukkit\), modify the batch file to be like this:

    Code:
    CD /D C:\Bukkit
    C:\Program Files\Java\jre7\bin\java.exe  -XX:MaxPermSize=128M -Xmx1024M -Xms1024M -jar craftbukkit.jar nogui -o true
    
    LHammonds
     
  12. Offline

    Bac-Man

    Unfortunately none of these methods work. Though after testing a few things with the server folder I've found that I can't run any .bat files at all. So whatever is causing this might be completely unrelated from my bukkit server.
    I'm currently using Google to try and find any solutions but have no found anything yet.
     
  13. Offline

    RitzyCosmos

    Will you post a screenshot of the error in its window, as well as a screenshot of your server folder with all contents?
    This will help us determine what's wrong.

    .bat might of been assigned to the incorrect program.
     
  14. Offline

    Bac-Man

    [​IMG]
     
  15. Offline

    RitzyCosmos

    Bac-Man
    Not sure if you've seen this; External Forum Thread where this person says the problem was caused by cmd.exe not being in their system32 folder.

    Search your /Windows/System32 folder for cmd.exe, and if it isn't there, get it in there.

    If it is in there.... I'm sure there's another solution.
     
  16. Offline

    Bac-Man

    Yeah, it's in there.
    I think I've read every forum post on the internet by this stage and still have not found a solution to my problem.
    :(

    Thanks for trying to help though, it is appreciated
     
  17. Offline

    LHammonds

    Well, like I said, this defies anything I have ever seen before, even mis-configurations of the OS. So I'm inclined to say you have a bug messing with you. If you are infected, it is quite likely your current anti-virus system has been compromised and cannot detect it anymore. Best methods for detection/removal at this point would be to insert a special anti-virus boot CDROM, power off your PC for a few seconds, then turn it on and boot up the CDROM and scan your hard drive for a critter.

    LHammonds
     
  18. Offline

    Bac-Man

    After giving up all hope of ever running a Bukkit server again, ladies and gentlemen, I did it.
    Apparently all it took was to update from Windows 8 to Windows 8.1. I have no idea why it's fixed my problem, but it may also fix anyone else who also has this problem.
    I'd like to also thank the kind people who tried helping me with this. Thanks.
     
Thread Status:
Not open for further replies.

Share This Page