Cant get server to run on windows 7

Discussion in 'Bukkit Help' started by Tophellcat, Apr 24, 2012.

  1. Offline

    Tophellcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I followed the instructions on the Bukkit wiki for installing. i put the server program on my desktop in a folder just for the server. i opened a notepad session and did the coding for windows and change the part of the coding to the special coding for running on a 64 bit system. when i click the run.bat file, it opens up a DOS looking window and reads:

    "The system can't find the Specified path. Press any key to continue..." and when i press a key, it closes the window.

    here is the coding i put in the notepad file. after i put the coding in the file, i saved it as RUN.bat
    @Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)% \Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE

    what am i doin wrong?
  2. Offline

    Motion101

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE

    here this is what i use and it runs perfectly
  3. Offline

    Motion101

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    wait i think thats the same
  4. Offline

    Tophellcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    just tried what you posted and still the same concern
  5. Offline

    Motion101

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    hmm are you sure you have a 64 bit and it is the correct version of craftbukkit
  6. Offline

    Tophellcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    when you downloaded the server program, did you rename it? and where did you save it to?
  7. Offline

    Tophellcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i used the current recommended build off the bukkit site
  8. Offline

    Motion101

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i made a notepad and i put the code in and pressed save as, then i made the file name run.bat and presses the thing that said save as type:text document (*.txt) and i changed it to all files and it should of popped up in were you craftbukkit is and then i pressed the save button and ran the server

    This post has been edited 1 time. It was last edited by Motion101 Apr 24, 2012.
  9. Offline

    Motion101

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    oops i mean run.bat srry
  10. Offline

    Motion101

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    did you get all that
  11. Offline

    Tophellcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    yes sir, did exactly that. removed the origional run.bat file i created and did exactly what you said to do and it still comes up with the same message
  12. Offline

    Motion101

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    hmm i will send you my file and try using that if it dosnt work then srry but i dont know what to do
  13. Offline

    Tophellcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ok. thank you
  14. Offline

    Motion101

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    wait are you sure you are running a 64 bit

    (cant send the files it wont let me)
  15. Offline

    Motion101

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    and also what kind of system are you running
  16. Offline

    nala3

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    remove the " . " after the @ (trying to tag a guy named echo :p )
    Code:
    @.Echo OFF
    java -server -Xmx 1024M -Xms100M -jar craftbukkit.jar nogui
    PAUSE
    
    If it still does not work, try:

    Code:
    @.Echo OFF
    C:\Program Files\Java\jre6\bin\java.exe -server -Xmx 1024M -Xms100M -jar craftbukkit.jar nogui
    PAUSE
    

    This post has been edited 2 times. It was last edited by nala3 Apr 24, 2012.
  17. Offline

    Tophellcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Motion101 I am running a Dell XPS with Windows 7 Home Premium 64 Bit System


    Nala3, when i changed what you said to do it says this with all three things you suggested.

    ' .Echo' is not recognized as an internal or external command,
    operable program or batch file.

    C:\users\Tophellcat\Desktop\Server>C:\Program Files\Java\jre6\bin\java.exe -serv
    er -Xmx 1024m -Xms100M -jar craftbukkit.jar nogui
    'C:\program' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\Tophellcat\Desktop\Server>PAUSE
    Press any key to continue . . .
  18. Offline

    nala3

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You need to remove the " . " like I said to :) Secondly I typed that very poorly.

    Here, I fixed it.
    Remove the period before "Echo" and after the "@" I put it there so I don't tag the guy named echo over and over again.
    Code:
    @.Echo OFF
    "C:\Program Files\Java\jre6\bin\java.exe" -server -Xmx1024M -Xms100M -jar craftbukkit.jar nogui
    PAUSE
  19. Offline

    Tophellcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    the DOS looking window reads:
    Unable to access jarfile craftbukkit.jar
    Press any key to continue...
  20. Offline

    Panzerwurst

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    daft question but you did put the jar file in the same folder as your run.bat

    Also the jar file name has to be
    craftbukkit.jar

    As thats what you have specified in your run.bat

    your run.bat file should read as follows

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

    You cant have C:\program files as a file path as windows doesent read spaces in folder names in command prompt hence why i have "%ProgramFiles%
  21. Offline

    Tophellcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Panzerwurst, i had renamed the file craftbukkit.jar origionally and did have the file is the same foulder as the run.bat file. i tried editing the run.bat file with the programming with what you had posted. When I double click the run.bat file, i get this

    Problems.png
  22. Offline

    Lilla

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    @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
    Any suggestions? :)
  23. Offline

    Tophellcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    anyone else got anything?
  24. Offline

    Lolmewn Retired Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Try redownloading Craftbukkit.
  25. Offline

    Paswaru

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The file you downloaded from bukkit.org would have been named craftbukkit-1.2.5-R1.0.jar, did you rename it to craftbukkit.jar?

    Can you post a screen shot of your server folder? It should look something like this:

    [IMG]
  26. Offline

    Paswaru

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    %ProgramFiles(x64)% isn't vaild. Its either %ProgramFiles% or %ProgramFiles(x86)%.

    %ProgramFiles% is going to point to C:\Program Files.
    %ProgramFiles(x86)% is only going to be on 64 bit versions of Windows and will point to C:\Program Files (x86). C:\Program Files (x86) is where 32 bit programs are/should be installed on 64 bit Windows.

    This post has been edited 1 time. It was last edited by Paswaru Apr 25, 2012.
  27. Offline

    Tophellcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    problems - folder.png

    For some reason, when i make the run.bat file, it won't put the .bat on the end. but the coding on the inside is

    @.ECHO OFF <less the (.) between @ and ECHO
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    %ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    i tried all the other codings that previous people have suggested and since t didn't work, i put it back to what the bukkit wiki said to put it at.

    This post has been edited 2 times. It was last edited by Tophellcat Apr 25, 2012.
  28. Offline

    Paswaru

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The problem is your craftbukkit.jar file is named craftbukkit.jar.jar.

    1) In side a folder view.
    2) Press Alt
    3) From the pull down menu select Tools, then select Folder Options
    4) In the Advanced Settings, Uncheck "Hide extensions for known file types".
    5) Press Ok.

    Your then will be able to see the .BAT on the end of the batch file, as well as the .jar.jar. Rename craftbukkit to just one .jar and give it a try.

    This post has been edited 1 time. It was last edited by Paswaru Apr 25, 2012.
  29. Offline

    Tophellcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    WOOT, I LOVE YOU GUYS/GIRLS!!! now, how do i shut down the server once i wanna turn it off? and how do i make myself an admin on the server?

    also, i had the basic server that you can download and run from the mincraft.net site. is there a way i can transfer that world file to the new server so that i don't loose anything and have to start over?

    This post has been edited 1 time. It was last edited by Tophellcat Apr 25, 2012.
  30. Offline

    RockCrafted

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Nope, Didn't work.

    Loading libraries, please wait...
    java.lang.ExceptionInInitializerError
    at net.minecraft.server.v1_7_R3.MinecraftServer.<init>(MinecraftServer.j
    ava:115)
    at net.minecraft.server.v1_7_R3.DedicatedServer.<init>(DedicatedServer.j
    ava:37)
    at net.minecraft.server.v1_7_R3.MinecraftServer.main(MinecraftServer.jav
    a:764)
    at org.bukkit.craftbukkit.Main.main(Main.java:159)
    Caused by: java.lang.IllegalStateException: failed to create a child event loop
    at net.minecraft.util.io.netty.util.concurrent.MultithreadEventExecutorG
    roup.<init>(MultithreadEventExecutorGroup.java:61)
    at net.minecraft.util.io.netty.channel.MultithreadEventLoopGroup.<init>(
    MultithreadEventLoopGroup.java:49)
    at net.minecraft.util.io.netty.channel.nio.NioEventLoopGroup.<init>(NioE
    ventLoopGroup.java:61)
    at net.minecraft.util.io.netty.channel.nio.NioEventLoopGroup.<init>(NioE
    ventLoopGroup.java:52)
    at net.minecraft.server.v1_7_R3.ServerConnection.<clinit>(SourceFile:31)

    ... 4 more
    Caused by: net.minecraft.util.io.netty.channel.ChannelException: failed to open
    a new selector
    at net.minecraft.util.io.netty.channel.nio.NioEventLoop.openSelector(Nio
    EventLoop.java:128)
    at net.minecraft.util.io.netty.channel.nio.NioEventLoop.<init>(NioEventL
    oop.java:120)
    at net.minecraft.util.io.netty.channel.nio.NioEventLoopGroup.newChild(Ni
    oEventLoopGroup.java:87)
    at net.minecraft.util.io.netty.util.concurrent.MultithreadEventExecutorG
    roup.<init>(MultithreadEventExecutorGroup.java:57)
    ... 8 more
    Caused by: java.io.IOException: Unable to establish loopback connection
    at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source)
    at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.nio.ch.PipeImpl.<init>(Unknown Source)
    at sun.nio.ch.SelectorProviderImpl.openPipe(Unknown Source)
    at java.nio.channels.Pipe.open(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl.<init>(Unknown Source)
    at sun.nio.ch.WindowsSelectorProvider.openSelector(Unknown Source)
    at net.minecraft.util.io.netty.channel.nio.NioEventLoop.openSelector(Nio
    EventLoop.java:126)
    ... 11 more
    Caused by: java.net.SocketException: Permission denied: listen
    at sun.nio.ch.Net.listen(Native Method)
    at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
    at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
    at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
    ... 20 more
    Press any key to continue . . .

Share This Page