Can't get this to work.

Discussion in 'Bukkit Help' started by dylstew, Apr 14, 2011.

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

    dylstew

    Hellom want to make a minecraft server for my class with some mods,but I can't get it to work.. I folowed the instructions on that wiki but I get this:

    http://img84.imageshack.us/img84/8910/myprobkem.png


    It's dutch,but it is the "C:\Users\Brandon\Desktop\Minecraft ONLINE>C:\Program Files (x86)\Java\jre6\bin\javaw.exe -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui" is not recognized as an internal or external command, operable program or batch file." error

    It happens when I click the BAT file I made with notepad,yes I did replace the %programfiles% thingie with %program files%x(86) stuff

    I have windows 7 64 bit and I think the latest java.
     
  2. Offline

    TnT

    Post the contents of your batch file please. You may also want to post the answers to the rest of the questions as well from this thread.
     
  3. Offline

    Ne0nx3r0

    It looks like the space in Program Files is causing issues (you probably need to surround the path in quotes); also you can just run java, not the whole path to javaw.exe.

    Also note that unless you are in the directory with your minecraft_server.jar when you run the command, it wont work, you need the path to the .jar. (it looks like you are in the directory, in this case)

    Your URL seems to be duplicated multiple times in that link:
    http://forums.bukkit.org/threads/you-need-help-we-need-this-information-to-help-you.2018/

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

    TnT

  5. Offline

    Andre_9796

    @TnT he was banned? :D
     
  6. Offline

    Ne0nx3r0

    he was kind of entertaining... I wonder what the motivation was there.
     
  7. Offline

    TnT

    Driving every team member nuts, including the devs. Probably a temp ban, but as I didn't lay out the ban hammer, I'm not going to lift it off.
     
  8. Offline

    dylstew

    When I run java.exe,even on administrator I get a dos screen that goes away in a flash!
    when I open the bukkit snapshot file thingie with java.exe,I get server logs.
    Yes the BAT is in the folder with the minecraft.jar.
    Everything is in downloads/server and my java is on tje C drive

    EDIT: opened 1 of em in notepad it says 2011-04-15 19:55:08 [INFO] Starting minecraft server version Beta 1.4
    2011-04-15 19:55:08 [WARNING] **** NOT ENOUGH RAM!
    2011-04-15 19:55:08 [WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    2011-04-15 19:55:08 [INFO] Loading properties
    2011-04-15 19:55:08 [INFO] Starting Minecraft server on 192.168.0.13:25565
    2011-04-15 19:55:08 [WARNING] **** FAILED TO BIND TO PORT!
    2011-04-15 19:55:08 [WARNING] The exception was: java.net.BindException: Address already in use: JVM_Bind
    2011-04-15 19:55:08 [WARNING] Perhaps a server is already running on that port?
     
  9. Offline

    Ne0nx3r0

    You can open a prompt, then start plugging in the commands to see what comes up; or add pause to the last line of your .bat file to see what's happening.

    I believe running the java command is essentially the same as passing the whole path to the exe, just a more effecient/stable way to do it.
     
  10. Offline

    dylstew


    I have no Idea what you just said,keep in mind that I DON"T KNOW ANYTHING of java or servers. I'm just a regular minecraft player. Please explain what you mean in greater detail.
     
  11. Offline

    Ne0nx3r0

    Assuming you're using a .bat file, it's just a text file renamed so windows runs it in the command prompt window; so you can right click on it, click edit, then add a line at the end of the file and add 'pause', this will make the window stay open if it has an error or something until you press another key.

    I just mean that:
    "C:\Users\Brandon\Desktop\Minecraft ONLINE>C:\Program Files (x86)\Java\jre6\bin\javaw.exe"
    is the same as
    java

    Note, I believe the "w" in javaw.exe just hides the prompt, so you could be running into something there too. I like having the prompt available on Windows, though I use debian for my host operating system.

    (I think, it works for me anyway)
     
  12. Offline

    dylstew


    Nothing happens when I open javaw.exe.
    Is there a different way to install bukkit?
     
  13. Offline

    mughi

    post the contents of your startup.batch file
     
  14. Offline

    dylstew

    HUH? it just said last night a dog told me and now it says soemthing else 0.o
     
  15. Offline

    mughi

    .. your batch file has my sig. in it? no wonder you are having problems :)
     
  16. Offline

    dylstew

    no,no I needed to go to sleep real fast and wanted to reply,but I scrolled down too much and read Last night my dog told me that the blood of my victims purifies the earth.

    the contents of my batch(.bat) file?
    @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
     
  17. Offline

    mughi

    and when you run that, you get
    Code:
    2011-04-15 19:55:08 [INFO] Starting minecraft server version Beta 1.4
    2011-04-15 19:55:08 [WARNING] **** NOT ENOUGH RAM!
    2011-04-15 19:55:08 [WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    2011-04-15 19:55:08 [INFO] Loading properties
    2011-04-15 19:55:08 [INFO] Starting Minecraft server on 192.168.0.13:25565
    2011-04-15 19:55:08 [WARNING] **** FAILED TO BIND TO PORT!
    2011-04-15 19:55:08 [WARNING] The exception was: java.net.BindException: Address already in use: JVM_Bind
    2011-04-15 19:55:08 [WARNING] Perhaps a server is already running on that port?
    
    if so: there are several problems:
    1. edit server.properties, make the line that currently says server_ip = 192.168.0.13 say server_ip=
    (in otherwords, SERVER_IP = MUST BE BLANK
    2. it wants more RAM, but if you don't have more than 1gb in your system, then you really can't give it any more. It should still run though.

    if you still get the failed to bind after changing server.properties, ...reboot (it's simpler)
     
  18. Offline

    dylstew


    1:In the beginning it always says it needs more ram,even tought he ram thing says 40%,and I have 4gb ram and nothing else running,plus everything works fine.
    2: but the previous time when I used a blank IP people couldn't connect... i'll try tough..
    EDIT: making server ip blank doesnt work
    EDIT2:I had the ip in the txt,clicked a few time on the bukkit snapshot file (it was on open with java.exe) and it created a plugin folder :3 But the BAT still does the same no matter what I do

    EDIT: I know why it says it needs more ram... minecraft server.exe it sas I have 50% free,but on the jar only 5! What the hell?
     
  19. Offline

    mughi

    1. get 64bit java, give it 2gb ram: Java Download (any version) (click the JRE link under the big java button)
    2. change your batch file to: (this assumes batch file is in same folder as craftbukkit-0.0.1-SNAPSHOT.jar)
      @ECHO OFF
      SET BINDIR=%~dp0
      CD /D "%BINDIR%"
      %ProgramFiles% \Java\jre6\bin\java.exe" -Xincgc -Xmx2G -jar craftbukkit-0.0.1-SNAPSHOT.jar
      PAUSE
    3. leave server_ip blank
    4. make sure your router and firewall are properly configured
      1. 1.set your router to forward traffic on port 25565 (or whatever) to your server's INTERNAL ip address (192... or 10... or whatever) (TCP AND UDP)
      2. configure your firewall as below
    Windows 7 Firewall Settings: (req. even if fw is off)
          1. create four rules in your firewall settings
          2. inbound, tcp, 25565, allow, all profiles
          3. inbound, udp, 25565, allow, all profiles
          4. outbound, tcp, 25565, allow, all profiles
          5. outbound, udp, 25565, allow, all profiles
     
Thread Status:
Not open for further replies.

Share This Page