[FIXED] Urgent panic - JRE7 / LWJGL / Linux broken

Started by princec, July 29, 2011, 15:23:07

Previous topic - Next topic

jediTofu

Quote from: TheRealBecks on October 07, 2011, 18:23:48
Ok, your sentence is not so easy to translate into german, but what I understand is: I have to check, if Tectonicus is using the nightly version of lwjgl.jar, right?

Please go here:  http://www.lwjgl.org/download.php

And use 2nd link that says "Nightly builds".

Click LWJGL and get lwjgl-2.8.0.zip.  Use the files in the "jars" folder and "native" folder.

Hope this helps.
cool story, bro

TheRealBecks

Yes, and that's the problem, because I did. And every file you can see in my last post with the find-command lists the files I replaced. So I really don't know, why this bug anyhow exists.

TheRealBecks

Ok, another try! Now I edited Tectonicus.*.jar and replaced the files in the "native" folder, so the actual files of lwjgl are stored in. The bug, that he can't find libjawt.so, still exists. libjawt.so in stored in /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjawt.so, but in /usr/lib/ is the file missing, so I linked it to the one in java-7-openjdk. Now there's another bug known from Ubuntu 11.04 with openjdk-6-jre:
Forcing 64-bit native libraries
Player skin cache is old or corrupt, cleaning...
Creating player icon assembler
Initialising display...
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/server/.tectonicus/native/liblwjgl.so: /usr/lib/libjawt.so: symbol awt_Unlock, version SUNWprivate_1.1 not defined in file libmawt.so with link time reference
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1924)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821)
        at java.lang.Runtime.load0(Runtime.java:792)
        at java.lang.System.load(System.java:1059)
        at org.lwjgl.Sys$1.run(Sys.java:70)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
        at org.lwjgl.Sys.loadLibrary(Sys.java:82)
        at org.lwjgl.Sys.<clinit>(Sys.java:99)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:130)
        at tectonicus.rasteriser.lwjgl.LwjglRasteriser.<init>(LwjglRasteriser.java:110)
        at tectonicus.rasteriser.RasteriserFactory.createRasteriser(RasteriserFactory.java:24)
        at tectonicus.TileRenderer.<init>(TileRenderer.java:146)
        at tectonicus.TectonicusApp.run(TectonicusApp.java:808)
        at tectonicus.TectonicusApp.main(TectonicusApp.java:1173)


It's the awt_Unlock-bug... -.- That's so depressingly...

kappa

You could try the Oracle JRE 6, just download it from the Oracle site.

TheRealBecks

I downloaded the actual jre 7 from oracle and installed it like is in this posting http://askubuntu.com/questions/32124/how-do-i-install-java-7-from-the-official-tarballs shown -->
Quotetar xvfz jdk-7-linux-x64.tar.gz
sudo update-alternatives --install /usr/bin/java java /[whereever]/jdk1.7.0/bin/java 0
sudo update-alternatives --config java
Installation worked, so I can use this version. But the awt-bug is the same. And jre 6 isn't better than jre 7, because other postings in the internet say, that jre 7 is the answer of the problem and because of this I upgraded Ubuntu 11.04 to 11.11 with official support for jre 7! :D Is there maybe a problem, because no x-server is available?


TheRealBecks

I found this website two weeks ago, too. But it can't be, that noone out there knows, why it's not running? And after two wooks of work I have been forwarded two java and now to lwjgl. And in this topic the bug I have is posted. So hell, what is it, if lwjgl is working correctly? :/

Matzon

did you READ the wiki entry? - specifically the xvfb part?
You seem to be running in headless mode ...

TheRealBecks

Yes, I read it and i ran in headless mode ;) I installed the x-server under Ubuntu 11.04, but as we can read in the article, Tectonicus won't work. But I'll try in 11.10 this evening.