Cant get server to run on windows 7

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

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

    Tophellcat

    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

    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

    wait i think thats the same

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

    Tophellcat

    just tried what you posted and still the same concern
     
  4. Offline

    Motion101

    hmm are you sure you have a 64 bit and it is the correct version of craftbukkit
     
  5. Offline

    Tophellcat

    when you downloaded the server program, did you rename it? and where did you save it to?

    i used the current recommended build off the bukkit site

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

    Motion101

    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

    oops i mean run.bat srry

    did you get all that

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

    Tophellcat

    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
     
  8. Offline

    Motion101

    hmm i will send you my file and try using that if it dosnt work then srry but i dont know what to do
     
  9. Offline

    Tophellcat

    ok. thank you
     
  10. Offline

    Motion101

    wait are you sure you are running a 64 bit

    (cant send the files it wont let me)

    and also what kind of system are you running

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

    nala3

    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
    
     
  12. Offline

    Tophellcat

    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 . . .
     
  13. Offline

    nala3

    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
     
  14. Offline

    Tophellcat

    the DOS looking window reads:
    Unable to access jarfile craftbukkit.jar
    Press any key to continue...
     
  15. Offline

    Panzerwurst

    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%
     
  16. Offline

    Tophellcat

    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
     
  17. 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

    @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? :)
     
  18. Offline

    Tophellcat

    anyone else got anything?
     
  19. Offline

    Lolmewn

    Try redownloading Craftbukkit.
     
  20. Offline

    Paswaru

    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]

    %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.

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

    Tophellcat

    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.
     
  22. Offline

    Paswaru

    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.
     
  23. Offline

    Tophellcat

    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?
     
  24. Offline

    RockCrafted

    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 . . .
     
  25. Offline

    iCreeper902

    Rename the craftbukkit.jar to craftbukkit without .jar hope this work

    To make your a admin do /op yourname

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
Thread Status:
Not open for further replies.

Share This Page