Start server in debian x64

    Joined
    Aug 19, 2012
    Messages
    3
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    crash:


    READING BLUEPRINTS!!!!!!!!!!!!

    STARTING WITH ARGUMENTS: [-server]

    [SERVER] initializing

    MAKING ITERATION: 20

    Exception in thread "ServerThread"

    java.lang.UnsatisfiedLinkError: /home/web/starmade/new/StarMade/native/linux/liblwjgl.so: /home/web/starmade/new/StarMade/native/linux/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

    at java.lang.ClassLoader$NativeLibrary.load(Native Method)

    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)

    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)

    at java.lang.Runtime.loadLibrary0(Runtime.java:823)

    at java.lang.System.loadLibrary(System.java:1028)

    at org.lwjgl.Sys$1.run(Sys.java:73)

    at java.security.AccessController.doPrivileged(Native Method)

    at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)

    at org.lwjgl.Sys.loadLibrary(Sys.java:95)

    at org.lwjgl.Sys.(Sys.java:112)

    at mn.b(SourceFile:31)

    at mn.a(SourceFile:38)

    at org.schema.game.server.controller.GameServerController.(SourceFile:113)

    at ej.run(SourceFile:314)

    at java.lang.Thread.run(Thread.java:662)





    uname -a Linux ks24935.kimsufi.com 3.2.13-grsec-xxxx-grs-ipv6-64 #1 SMP Thu Mar 29 09:48:59 UTC 2012 x86_64 GNU/Linux



    Need help!

    use tutorial

    http://star-made.org/content/set-dedicated-server-linux-0

    thx!



    edit: new info


    java -version && javac -version

    java version "1.6.0_26"

    Java(TM) SE Runtime Environment (build 1.6.0_26-b03)

    Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

    javac 1.6.0_26
     

    schema

    Cat God
    Joined
    Feb 17, 2012
    Messages
    1,552
    Reaction score
    2,604
    • Schine
    Hi,
    I heared about this error, and that adding


    export LD_LIBRARY_PATH="/opt/java/jre/lib/amd64"

    (replace "/opt/java/jre/lib/amd64" with the path to your jre)
    in the script one line before the 'java' command would solve this problem.
    I unfortunately can't confirm this solution since I haven't encountered the bug yet. You can also do a google search for "java.lang.UnsatisfiedLinkError: liblwjgl.so: liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) debian", since it seems, the same bug is happening for mincecraft servers as well (we are using the same native libraries)

    I hope this helps,
    - schema
     
    Joined
    Aug 19, 2012
    Messages
    3
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    sorry for my poor english...
    export LD_LIBRARY_PATH="/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/" && xvfb-run java -jar StarMade.jar -server

    not solved my problem :S



    $ ls /usr/lib/jvm/

    default-java java-1.5.0-gcj-4.4 java-6-openjdk java-gcj-4.4

    java-1.5.0-gcj java-1.6.0-openjdk java-gcj



    any ideas?




    I searched google and tried everything that appears and nothing happens. The same mistake! to see if you think of something else!

    thx!
     

    schema

    Cat God
    Joined
    Feb 17, 2012
    Messages
    1,552
    Reaction score
    2,604
    • Schine
    I just noticed that in the message:


    java.lang.UnsatisfiedLinkError: /home/web/starmade/new/StarMade/native/linux/liblwjgl.so: /home/web/starmade/new/StarMade/native/linux/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

    the system is trying to load liblwjgl.so, which is the 32bit library of lwjgl. This would explain the error message. in that directory, there should be liblwjgl.so and liblwjgl64.so (for the other .so as well)
    Try deleting everything except the 3 files listed from /home/web/starmade/new/StarMade/native/linux/

    liblwjgl64.so

    libjinput-linux64.so

    libopenal64.so

    I hope, this helps,
    - schema
     
    Joined
    Aug 19, 2012
    Messages
    3
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    Delete liblwjgl.so

    java -d64 -jar StarMade.jar -server



    it appears that attempts to load the 32 bit and not 64, but you set the parameter-D64



    java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)

    ....





    in my notebook is working properly erasing the library. (using ubuntu) any ideas?