little trouble Running Bukkit on Linux

Discussion in 'Bukkit Help' started by ZaroSath, Feb 2, 2011.

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

    ZaroSath

    i've sort of installed java on linux, i got the files i'm just attempting to run it directly with the java.whatever file and so far it works, i can -version and it seems to run.

    but when i try

    Code:
    [root@rune-chaos ~]# jre1.6.0_23/bin/java -Xms1024M -Xmx1024M -jar "craftbukkit-0.0.1-SNAPSHOT.jar" nogui
    Unable to access jarfile craftbukkit-0.0.1-SNAPSHOT.jar
    [root@rune-chaos ~]#
    yeah.. any ideas? the files had its own directory but since it didnt work i tried putting them directly in java's bin with no luck.
     
  2. Offline

    c0mp

    Your command looks OK, it seems that the craftbukkit-0.0.1-SNAPSHOT.jar file is not present. Not sure which distro you're using, but in some distros, when you log in as root, as it appears you are, your home directory (which is where you are, according to the ~ in the prompt) ends up being /root/ rather than /home/<username>/. Make sure the .jar file is where you currently are, or specify the full path to the file.

    Which also begs the question, why do you need to be running your Minecraft server with root privs?
     
  3. Offline

    ZaroSath

    why not? i admit it may not be the best way but for now i'm just trying to get it to work.. i'm not exactly very knowledgeable when it comes to linux so could you give me some idea what i should aim for? also.. i've tried listing the directory to look for the jar file but i cant seem to get it to work, can you give me an example? i've been trying something like
    Code:
    jre1.6.0_23/bin/java -Xms1024M -Xmx1024M -jar "/Bukkit/craftbukkit-0.0.1-SNAPSHOT.jar" nogui
    but it gives the same problem.


    EDIT: i got it working :) still would LOVE some suggestions, i seem to be able to handle basic stuff thanks to google and some past experience but i still would love the support.. if you want to know how i did it, for some reason i couldn't get it to go to the jar's directory but i just moved the files into root's main directory instead to try that out and what do you know..
    --- merged: Feb 3, 2011 1:22 PM ---
    sorry for double-posting but i cant seem to log in, it stops at logging in and then the server times me out.. here's the server log after attempting to log in several times

    Code:
    [root@rune-chaos ~]# jre1.6.0_23/bin/java -Xms1024M -Xmx1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
    2011-02-03 16:15:29 [INFO] Starting minecraft server version Beta 1.2_01
    2011-02-03 16:15:29 [INFO] Loading properties
    2011-02-03 16:15:29 [INFO] Starting Minecraft server on *:25565
    2011-02-03 16:15:29 [INFO] Preparing level "world"
    2011-02-03 16:15:29 [INFO] Preparing start region
    2011-02-03 16:15:30 [INFO] Preparing spawn area: 40%
    2011-02-03 16:15:31 [INFO] Preparing spawn area: 85%
    2011-02-03 16:15:32 [INFO] [Permissions] version [1.9] (Handler) loaded
    2011-02-03 16:15:32 [WARNING] Warps were not found in warps folder
    2011-02-03 16:15:32 [INFO] Loaded Essentials b131 by Zenexer, ementalo, Eris, and EggRoll
    2011-02-03 16:15:32 [INFO] Done! For help, type "help" or "?"
    2011-02-03 16:16:08 [INFO] Disconnecting ZaroSath [/216.211.176.215:51360]: Took too long to log in
    2011-02-03 16:16:51 [INFO] Disconnecting ZaroSath [/216.211.176.215:51363]: Took too long to log in
    java.net.UnknownHostException: www.minecraft.net
            at java.net.PlainSocketImpl.connect(Unknown Source)
            at java.net.SocksSocketImpl.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at sun.net.NetworkClient.doConnect(Unknown Source)
            at sun.net.www.http.HttpClient.openServer(Unknown Source)
            at sun.net.www.http.HttpClient.openServer(Unknown Source)
            at sun.net.www.http.HttpClient.<init>(Unknown Source)
            at sun.net.www.http.HttpClient.New(Unknown Source)
            at sun.net.www.http.HttpClient.New(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
            at java.net.URL.openStream(Unknown Source)
            at net.minecraft.server.ThreadLoginVerifier.run(SourceFile:96)
    java.net.UnknownHostException: www.minecraft.net
            at java.net.PlainSocketImpl.connect(Unknown Source)
            at java.net.SocksSocketImpl.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at sun.net.NetworkClient.doConnect(Unknown Source)
            at sun.net.www.http.HttpClient.openServer(Unknown Source)
            at sun.net.www.http.HttpClient.openServer(Unknown Source)
            at sun.net.www.http.HttpClient.<init>(Unknown Source)
            at sun.net.www.http.HttpClient.New(Unknown Source)
            at sun.net.www.http.HttpClient.New(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
            at java.net.URL.openStream(Unknown Source)
            at net.minecraft.server.ThreadLoginVerifier.run(SourceFile:96)
    2011-02-03 16:17:52 [INFO] Disconnecting ZaroSath [/216.211.176.215:51367]: Took too long to log in
    stop                                                                            2011-02-03 16:18:05 [INFO] CONSOLE: Stopping the server..
    2011-02-03 16:18:05 [INFO] Stopping server
    2011-02-03 16:18:05 [INFO] Saving chunks
    [root@rune-chaos ~]#
    
    the last bit was me stopping the server..
    is there any linux compatibility issues? i'm running this on a CentOS server
     
  4. Offline

    TnT

    This post may be able to give you more information on setting it up, and tweaking it properly.
     
Thread Status:
Not open for further replies.

Share This Page