Run.bat opening as a notepad

Discussion in 'Bukkit Help' started by jerichoi224, Feb 17, 2013.

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

    jerichoi224

    I did as the instruction said
    and it was working properly until like 1 hour ago.
    I then did "stop" and tried to restart.
    now, it doesn't open as command prompt. it opens as a notepad,and can't do anything
    the icon is also the one with a square and a gear inside.
    this icon
    http://trickytipss.blogspot.com/2012/10/learn-batch-programming-noob-way.html
    and. I tried "Run as administrator" and it says it can't access bukkitcraft.jar
    and yes, I changed the name to bukkitcraft.

    Is there a way to make it open as command prompt by just double clicking?
    or just by any way. thank you
     
  2. Offline

    PimpDuck

    Did you make sure when you saved the notepad file you clicked all files?
     
  3. Offline

    MegaNarwhal

    Ok, first things first: It's not called BukkitCraft, it's CraftBukkit. Second, are you sure your startup script is correct? I recommend following this tutorial to get it set up. I realize you've probably already done this, but it sounds like you messed it up :rolleyes:
     
  4. Offline

    XeClutch

    Easy fix for Windows
    1. Right click the run.bat file
    2. Go to the Open With... section
    3. Click Choose Default Program
    4. Click Command Prompt

    I hope this helped
     
  5. Offline

    jerichoi224

    YEAp. I followed Exactly.
    It just doesn't work. and I meant craftbukkit, just lazy to check

    Here.
    When I just double click the run.bat, notepad opens
    When I run as admin, the cmd opens.
    [​IMG]

    Anyone with the same issue?

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

    Semajnad

    jerichoi224
    You got Teamspeak, if so join teamspeak.mycraftserver.co.uk and I'll give you a hand.

    EDIT: Gotta go off for tonight, if you've still got this issue tomorrow, I'll be home at 7.00pm GMT. You can add me on skype if you want, add 'mycraftserver'.

    See you then,
    -Semajnad
     
  7. Offline

    ghost0001

    I use this code to run my test server:
    Code:
    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    
    I also run Java 7 x64 so you might want to see if your java is in that folder first.
     
  8. Offline

    Fawnd

    What is on the notepad shouldn't be there. It should be the code that ghost0001 said.
     
  9. Offline

    MegaNarwhal

    It's starting in the System32 folder for some reason. The CraftBukkit jar isn't in System32 which explains the fact that it can't find it, but not why it opens in Notepad unless run as administrator. Try adding
    Code:
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    to the top of your startup script and trying again.
     
Thread Status:
Not open for further replies.

Share This Page