Discussion:
[classlib][awt]Problem with libgl.so
ArLi Weng
2011-11-07 04:13:52 UTC
Permalink
i download the Apache Harmony 5.0M15 JRE for 32-bit Linux from apache.org, but not work for me, when i create an awt.frame at java code, run it just tell me libgl.so not exist, but it exist in the /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/libgl.so, my command and response here:

$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -showversion -jar cc-src.jar
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
Apache Harmony (1.5.0)
DRLVM (1.5.0-r991518)
pre-alpha : not complete or compatible
svn = r991518, (Sep 7 2010), Linux/ia32/gcc 4.3.2, release build
http://harmony.apache.org
Uncaught exception in AWT-NativeEventThread:
java.lang.UnsatisfiedLinkError: Can not find the library: libgl.so
at java.lang.Runtime.loadLibrary0(Runtime.java:806)
at java.lang.System.loadLibrary(System.java:229)
at org.apache.harmony.awt.Utils$2.run(Utils.java:44)
at java.security.AccessController.doPrivilegedImpl(AccessController.java:112)
at java.security.AccessController.doPrivileged(AccessController.java:75)
at org.apache.harmony.awt.Utils.loadLibrary(Utils.java:42)
at org.apache.harmony.awt.wtk.linux.LinuxWTK.<clinit>(LinuxWTK.java:32)
at java.lang.VMClassRegistry.initializeClass(VMClassRegistry.java)
at java.lang.Class.forName(Class.java:146)
at java.lang.Class.forName(Class.java:89)
at java.awt.Toolkit.createWTK(Toolkit.java:975)
at java.awt.Toolkit.access$1(Toolkit.java:972)
at java.awt.Toolkit$1.init(Toolkit.java:555)
at org.apache.harmony.awt.wtk.NativeEventThread.run(NativeEventThread.java:46)
Uncaught exception in main:
java.lang.reflect.InvocationTargetException
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
at java.lang.reflect.Method.invoke(Method.java:316)
at org.apache.harmony.vm.JarRunner.main(JarRunner.java:89)
Caused by: java.lang.NullPointerException
at java.awt.Toolkit.init(Toolkit.java:565)
at java.awt.Toolkit.<init>(Toolkit.java:539)
at java.awt.ToolkitImpl.<init>(ToolkitImpl.java:40)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:471)
at java.awt.FlowLayout.<init>(FlowLayout.java:41)
at java.awt.FlowLayout.<init>(FlowLayout.java:59)
at java.awt.Panel.<init>(Panel.java:47)
at com.f13key.seimpl.StartupAwt.<init>(StartupAwt.java:74)
at Startup.<init>(Startup.java:13)
at Startup.main(Startup.java:9)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
... 2 more
Uncaught exception in AWT-EventDispatchThread:
java.lang.NullPointerException
at java.awt.Toolkit.getNativeEventQueue(Toolkit.java:1172)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:46)

$ env
LC_PAPER=zh_CN.UTF-8
LC_ADDRESS=zh_CN.UTF-8
SSH_AGENT_PID=1953
LC_MONETARY=zh_CN.UTF-8
XDG_DATA_HOME=/home/arli/.local/share
GPG_AGENT_INFO=/tmp/gpg-jM4YOE/S.gpg-agent:1953:1
GLADE_PIXMAP_PATH=:
TERM=xterm
SHELL=/bin/bash
XDG_MENU_PREFIX=xfce-
XDG_SESSION_COOKIE=6a2d8e342e8247ca685b229e00000443-1320581758.826716-627591705
WINDOWID=52430452
LC_NUMERIC=zh_CN.UTF-8
HUSHLOGIN=FALSE
USER=arli
LC_TELEPHONE=zh_CN.UTF-8
GLADE_MODULE_PATH=:
SSH_AUTH_SOCK=/tmp/gpg-1PPPZz/S.gpg-agent.ssh
SESSION_MANAGER=local/alx-nb:@/tmp/.ICE-unix/1963,unix/alx-nb:/tmp/.ICE-unix/1963
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_CONFIG_DIRS=/etc/xdg:/etc/xdg
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl
MAIL=/var/spool/mail/arli
DESKTOP_SESSION=xfce
LC_MESSAGES=en_GB.UTF-8
QT_IM_MODULE=fcitx
LC_COLLATE=zh_CN.UTF-8
LC_IDENTIFICATION=zh_CN.UTF-8
PWD=/mnt/workshop/developer/java/com.f13key/game1/com.f13key.game.character/dist
XMODIFIERS=@im=fcitx
JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/
LANG=zh_CN.UTF-8
LC_MEASUREMENT=zh_CN.UTF-8
HOME=/home/arli
SHLVL=5
XDG_CONFIG_HOME=/home/arli/.config
XDG_CACHE_HOME=/home/arli/.cache
LOGNAME=arli
WINEDEBUG=fixme-all
XDG_DATA_DIRS=/usr/share/:/usr/local/share/:/usr/share
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-aJIrGvbdxx,guid=4fbed672b07ba1ef4af1f51500000164
J2SDKDIR=/usr/lib/jvm/java-6-openjdk
LC_CTYPE=zh_CN.UTF-8
WINDOWPATH=7
DISPLAY=:0.0
LIBGLADE_MODULE_PATH=:
GLADE_CATALOG_PATH=:
GTK_IM_MODULE=fcitx
J2REDIR=/usr/lib/jvm/java-6-openjdk/jre
LC_TIME=zh_CN.UTF-8
G_BROKEN_FILENAMES=1
COLORTERM=Terminal
XAUTHORITY=/home/arli/.Xauthority
LC_NAME=zh_CN.UTF-8
_=/usr/bin/env
OLDPWD=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin

PS. run with user(non-root) need, so can't extract the harmony to /usr/xxx
--
ArLi Weng <***@163.com>
ArLi Weng
2011-11-07 05:28:40 UTC
Permalink
fallow the file:
apache-harmony-5.0-src-r991518/drlvm/vm/vmcore/src/kernel_classes/javasrc/java/lang/Runtime.java
i set the java.library.path with:

$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -Djava.library.path=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/ -jar cc-src.jar

but still libgl.so not found.

$ ldd /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/libgl.so
ldd: warning: you do not have execution permission for `/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/libgl.so'
linux-gate.so.1 => (0xb776c000)
libhythr.so => not found
libc.so.6 => /lib/libc.so.6 (0xb75a3000)
libdl.so.2 => /lib/libdl.so.2 (0xb759e000)
libpng12.so.0 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb74ae000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7378000)
libXft.so.2 => /usr/lib/libXft.so.2 (0xb7366000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7354000)
libXtst.so.6 => /usr/lib/libXtst.so.6 (0xb734f000)
/lib/ld-linux.so.2 (0xb776d000)
libm.so.6 => /lib/libm.so.6 (0xb7325000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7307000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb72e9000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb72bb000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7220000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7218000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb7208000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7205000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7200000)
libz.so.1 => /usr/lib/libz.so.1 (0xb71e8000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb71be000)
libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb71ad000)

On Mon, 7 Nov 2011 12:13:52 +0800
Post by ArLi Weng
$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -showversion -jar cc-src.jar
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
Apache Harmony (1.5.0)
DRLVM (1.5.0-r991518)
pre-alpha : not complete or compatible
svn = r991518, (Sep 7 2010), Linux/ia32/gcc 4.3.2, release build
http://harmony.apache.org
java.lang.UnsatisfiedLinkError: Can not find the library: libgl.so
at java.lang.Runtime.loadLibrary0(Runtime.java:806)
at java.lang.System.loadLibrary(System.java:229)
at org.apache.harmony.awt.Utils$2.run(Utils.java:44)
at java.security.AccessController.doPrivilegedImpl(AccessController.java:112)
at java.security.AccessController.doPrivileged(AccessController.java:75)
at org.apache.harmony.awt.Utils.loadLibrary(Utils.java:42)
at org.apache.harmony.awt.wtk.linux.LinuxWTK.<clinit>(LinuxWTK.java:32)
at java.lang.VMClassRegistry.initializeClass(VMClassRegistry.java)
at java.lang.Class.forName(Class.java:146)
at java.lang.Class.forName(Class.java:89)
at java.awt.Toolkit.createWTK(Toolkit.java:975)
at java.awt.Toolkit.access$1(Toolkit.java:972)
at java.awt.Toolkit$1.init(Toolkit.java:555)
at org.apache.harmony.awt.wtk.NativeEventThread.run(NativeEventThread.java:46)
java.lang.reflect.InvocationTargetException
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
at java.lang.reflect.Method.invoke(Method.java:316)
at org.apache.harmony.vm.JarRunner.main(JarRunner.java:89)
Caused by: java.lang.NullPointerException
at java.awt.Toolkit.init(Toolkit.java:565)
at java.awt.Toolkit.<init>(Toolkit.java:539)
at java.awt.ToolkitImpl.<init>(ToolkitImpl.java:40)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:471)
at java.awt.FlowLayout.<init>(FlowLayout.java:41)
at java.awt.FlowLayout.<init>(FlowLayout.java:59)
at java.awt.Panel.<init>(Panel.java:47)
at com.f13key.seimpl.StartupAwt.<init>(StartupAwt.java:74)
at Startup.<init>(Startup.java:13)
at Startup.main(Startup.java:9)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
... 2 more
java.lang.NullPointerException
at java.awt.Toolkit.getNativeEventQueue(Toolkit.java:1172)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:46)
$ env
LC_PAPER=zh_CN.UTF-8
LC_ADDRESS=zh_CN.UTF-8
SSH_AGENT_PID=1953
LC_MONETARY=zh_CN.UTF-8
XDG_DATA_HOME=/home/arli/.local/share
GPG_AGENT_INFO=/tmp/gpg-jM4YOE/S.gpg-agent:1953:1
TERM=xterm
SHELL=/bin/bash
XDG_MENU_PREFIX=xfce-
XDG_SESSION_COOKIE=6a2d8e342e8247ca685b229e00000443-1320581758.826716-627591705
WINDOWID=52430452
LC_NUMERIC=zh_CN.UTF-8
HUSHLOGIN=FALSE
USER=arli
LC_TELEPHONE=zh_CN.UTF-8
SSH_AUTH_SOCK=/tmp/gpg-1PPPZz/S.gpg-agent.ssh
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_CONFIG_DIRS=/etc/xdg:/etc/xdg
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl
MAIL=/var/spool/mail/arli
DESKTOP_SESSION=xfce
LC_MESSAGES=en_GB.UTF-8
QT_IM_MODULE=fcitx
LC_COLLATE=zh_CN.UTF-8
LC_IDENTIFICATION=zh_CN.UTF-8
PWD=/mnt/workshop/developer/java/com.f13key/game1/com.f13key.game.character/dist
JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/
LANG=zh_CN.UTF-8
LC_MEASUREMENT=zh_CN.UTF-8
HOME=/home/arli
SHLVL=5
XDG_CONFIG_HOME=/home/arli/.config
XDG_CACHE_HOME=/home/arli/.cache
LOGNAME=arli
WINEDEBUG=fixme-all
XDG_DATA_DIRS=/usr/share/:/usr/local/share/:/usr/share
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-aJIrGvbdxx,guid=4fbed672b07ba1ef4af1f51500000164
J2SDKDIR=/usr/lib/jvm/java-6-openjdk
LC_CTYPE=zh_CN.UTF-8
WINDOWPATH=7
DISPLAY=:0.0
GTK_IM_MODULE=fcitx
J2REDIR=/usr/lib/jvm/java-6-openjdk/jre
LC_TIME=zh_CN.UTF-8
G_BROKEN_FILENAMES=1
COLORTERM=Terminal
XAUTHORITY=/home/arli/.Xauthority
LC_NAME=zh_CN.UTF-8
_=/usr/bin/env
OLDPWD=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin
PS. run with user(non-root) need, so can't extract the harmony to /usr/xxx
--
--
ArLi Weng <***@163.com>
Da Feng
2011-11-07 08:48:52 UTC
Permalink
http://harmony.apache.org/quickhelp_contributors.html#1.%20Prerequisites
This document give dependencies and setting of JAVA_HOME, it should point to jre, not jre/bin and PATH didn't reflect you binaries.

 
DaFENG
Coder
Telecommunication && Network Industry
Gmail:***@gmail.com



----- Original Message -----
From: ArLi Weng <***@163.com>
To: ***@harmony.apache.org
Cc:
Sent: Monday, November 7, 2011 1:28 PM
Subject: Re: [classlib][awt]Problem with libgl.so

fallow the file:
apache-harmony-5.0-src-r991518/drlvm/vm/vmcore/src/kernel_classes/javasrc/java/lang/Runtime.java
i set the java.library.path with:

$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -Djava.library.path=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/ -jar cc-src.jar

but still libgl.so not found.

$ ldd /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/libgl.so
ldd: warning: you do not have execution permission for `/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/libgl.so'
    linux-gate.so.1 =>  (0xb776c000)
    libhythr.so => not found
    libc.so.6 => /lib/libc.so.6 (0xb75a3000)
    libdl.so.2 => /lib/libdl.so.2 (0xb759e000)
    libpng12.so.0 => not found
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb74ae000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0xb7378000)
    libXft.so.2 => /usr/lib/libXft.so.2 (0xb7366000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0xb7354000)
    libXtst.so.6 => /usr/lib/libXtst.so.6 (0xb734f000)
    /lib/ld-linux.so.2 (0xb776d000)
    libm.so.6 => /lib/libm.so.6 (0xb7325000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7307000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb72e9000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb72bb000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7220000)
    libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7218000)
    libXi.so.6 => /usr/lib/libXi.so.6 (0xb7208000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0xb7205000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7200000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb71e8000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb71be000)
    libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb71ad000)

On Mon, 7 Nov 2011 12:13:52 +0800
Post by ArLi Weng
$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -showversion -jar cc-src.jar
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
Apache Harmony (1.5.0)
DRLVM (1.5.0-r991518)
pre-alpha : not complete or compatible
svn = r991518, (Sep  7 2010), Linux/ia32/gcc 4.3.2, release build
http://harmony.apache.org
java.lang.UnsatisfiedLinkError: Can not find the library: libgl.so
    at java.lang.Runtime.loadLibrary0(Runtime.java:806)
    at java.lang.System.loadLibrary(System.java:229)
    at org.apache.harmony.awt.Utils$2.run(Utils.java:44)
    at java.security.AccessController.doPrivilegedImpl(AccessController.java:112)
    at java.security.AccessController.doPrivileged(AccessController.java:75)
    at org.apache.harmony.awt.Utils.loadLibrary(Utils.java:42)
    at org.apache.harmony.awt.wtk.linux.LinuxWTK.<clinit>(LinuxWTK.java:32)
    at java.lang.VMClassRegistry.initializeClass(VMClassRegistry.java)
    at java.lang.Class.forName(Class.java:146)
    at java.lang.Class.forName(Class.java:89)
    at java.awt.Toolkit.createWTK(Toolkit.java:975)
    at java.awt.Toolkit.access$1(Toolkit.java:972)
    at java.awt.Toolkit$1.init(Toolkit.java:555)
    at org.apache.harmony.awt.wtk.NativeEventThread.run(NativeEventThread.java:46)
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
    at java.lang.reflect.Method.invoke(Method.java:316)
    at org.apache.harmony.vm.JarRunner.main(JarRunner.java:89)
Caused by: java.lang.NullPointerException
    at java.awt.Toolkit.init(Toolkit.java:565)
    at java.awt.Toolkit.<init>(Toolkit.java:539)
    at java.awt.ToolkitImpl.<init>(ToolkitImpl.java:40)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:471)
    at java.awt.FlowLayout.<init>(FlowLayout.java:41)
    at java.awt.FlowLayout.<init>(FlowLayout.java:59)
    at java.awt.Panel.<init>(Panel.java:47)
    at com.f13key.seimpl.StartupAwt.<init>(StartupAwt.java:74)
    at Startup.<init>(Startup.java:13)
    at Startup.main(Startup.java:9)
    at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
    ... 2 more
java.lang.NullPointerException
    at java.awt.Toolkit.getNativeEventQueue(Toolkit.java:1172)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:46)
$ env
LC_PAPER=zh_CN.UTF-8
LC_ADDRESS=zh_CN.UTF-8
SSH_AGENT_PID=1953
LC_MONETARY=zh_CN.UTF-8
XDG_DATA_HOME=/home/arli/.local/share
GPG_AGENT_INFO=/tmp/gpg-jM4YOE/S.gpg-agent:1953:1
TERM=xterm
SHELL=/bin/bash
XDG_MENU_PREFIX=xfce-
XDG_SESSION_COOKIE=6a2d8e342e8247ca685b229e00000443-1320581758.826716-627591705
WINDOWID=52430452
LC_NUMERIC=zh_CN.UTF-8
HUSHLOGIN=FALSE
USER=arli
LC_TELEPHONE=zh_CN.UTF-8
SSH_AUTH_SOCK=/tmp/gpg-1PPPZz/S.gpg-agent.ssh
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_CONFIG_DIRS=/etc/xdg:/etc/xdg
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl
MAIL=/var/spool/mail/arli
DESKTOP_SESSION=xfce
LC_MESSAGES=en_GB.UTF-8
QT_IM_MODULE=fcitx
LC_COLLATE=zh_CN.UTF-8
LC_IDENTIFICATION=zh_CN.UTF-8
PWD=/mnt/workshop/developer/java/com.f13key/game1/com.f13key.game.character/dist
JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/
LANG=zh_CN.UTF-8
LC_MEASUREMENT=zh_CN.UTF-8
HOME=/home/arli
SHLVL=5
XDG_CONFIG_HOME=/home/arli/.config
XDG_CACHE_HOME=/home/arli/.cache
LOGNAME=arli
WINEDEBUG=fixme-all
XDG_DATA_DIRS=/usr/share/:/usr/local/share/:/usr/share
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-aJIrGvbdxx,guid=4fbed672b07ba1ef4af1f51500000164
J2SDKDIR=/usr/lib/jvm/java-6-openjdk
LC_CTYPE=zh_CN.UTF-8
WINDOWPATH=7
DISPLAY=:0.0
GTK_IM_MODULE=fcitx
J2REDIR=/usr/lib/jvm/java-6-openjdk/jre
LC_TIME=zh_CN.UTF-8
G_BROKEN_FILENAMES=1
COLORTERM=Terminal
XAUTHORITY=/home/arli/.Xauthority
LC_NAME=zh_CN.UTF-8
_=/usr/bin/env
OLDPWD=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin
PS. run with user(non-root) need, so can't extract the harmony to /usr/xxx
--
--
ArLi Weng <***@163.com>
ArLi Weng
2011-11-07 16:32:13 UTC
Permalink
of course, i have try that already:

[***@alx-nb jre]$ export JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre
[***@alx-nb jre]$ cd
[***@alx-nb ~]$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -jar /mnt/workshop/developer/java/com.f13key/game1/com.f13key.game.character/dist/cc-src.jar Uncaught exception in AWT-NativeEventThread:
java.lang.UnsatisfiedLinkError: Can not find the library: libgl.so
at java.lang.Runtime.loadLibrary0(Runtime.java:806)
at java.lang.System.loadLibrary(System.java:229)
at org.apache.harmony.awt.Utils$2.run(Utils.java:44)
at java.security.AccessController.doPrivilegedImpl(AccessController.java:112)
at java.security.AccessController.doPrivileged(AccessController.java:75)
at org.apache.harmony.awt.Utils.loadLibrary(Utils.java:42)
at org.apache.harmony.awt.wtk.linux.LinuxWTK.<clinit>(LinuxWTK.java:32)
at java.lang.VMClassRegistry.initializeClass(VMClassRegistry.java)
at java.lang.Class.forName(Class.java:146)
at java.lang.Class.forName(Class.java:89)
at java.awt.Toolkit.createWTK(Toolkit.java:975)
at java.awt.Toolkit.access$1(Toolkit.java:972)
at java.awt.Toolkit$1.init(Toolkit.java:555)
at org.apache.harmony.awt.wtk.NativeEventThread.run(NativeEventThread.java:46)
Uncaught exception in AWT-EventDispatchThread:
Uncaught exception in main:
java.lang.reflect.InvocationTargetException
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
at java.lang.reflect.Method.invoke(Method.java:316)
at org.apache.harmony.vm.JarRunner.main(JarRunner.java:89)
Caused by: java.lang.NullPointerException
at java.awt.Toolkit.init(Toolkit.java:565)
at java.awt.Toolkit.<init>(Toolkit.java:539)
at java.awt.ToolkitImpl.<init>(ToolkitImpl.java:40)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:471)
at java.awt.FlowLayout.<init>(FlowLayout.java:41)
at java.awt.FlowLayout.<init>(FlowLayout.java:59)
at java.awt.Panel.<init>(Panel.java:47)
at com.f13key.seimpl.StartupAwt.<init>(StartupAwt.java:74)
at Startup.<init>(Startup.java:13)
at Startup.main(Startup.java:9)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
... 2 more
java.lang.NullPointerException
at java.awt.Toolkit.getNativeEventQueue(Toolkit.java:1172)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:46)

On Mon, 7 Nov 2011 00:48:52 -0800 (PST)
Post by Da Feng
http://harmony.apache.org/quickhelp_contributors.html#1.%20Prerequisites
This document give dependencies and setting of JAVA_HOME, it should point to jre, not jre/bin and PATH didn't reflect you binaries.
 
DaFENG
Coder
Telecommunication && Network Industry
----- Original Message -----
Sent: Monday, November 7, 2011 1:28 PM
Subject: Re: [classlib][awt]Problem with libgl.so
apache-harmony-5.0-src-r991518/drlvm/vm/vmcore/src/kernel_classes/javasrc/java/lang/Runtime.java
$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -Djava.library.path=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/ -jar cc-src.jar
but still libgl.so not found.
$ ldd /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/libgl.so
ldd: warning: you do not have execution permission for `/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/libgl.so'
    linux-gate.so.1 =>  (0xb776c000)
    libhythr.so => not found
    libc.so.6 => /lib/libc.so.6 (0xb75a3000)
    libdl.so.2 => /lib/libdl.so.2 (0xb759e000)
    libpng12.so.0 => not found
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb74ae000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0xb7378000)
    libXft.so.2 => /usr/lib/libXft.so.2 (0xb7366000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0xb7354000)
    libXtst.so.6 => /usr/lib/libXtst.so.6 (0xb734f000)
    /lib/ld-linux.so.2 (0xb776d000)
    libm.so.6 => /lib/libm.so.6 (0xb7325000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7307000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb72e9000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb72bb000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7220000)
    libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7218000)
    libXi.so.6 => /usr/lib/libXi.so.6 (0xb7208000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0xb7205000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7200000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb71e8000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb71be000)
    libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb71ad000)
On Mon, 7 Nov 2011 12:13:52 +0800
Post by ArLi Weng
$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -showversion -jar cc-src.jar
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
Apache Harmony (1.5.0)
DRLVM (1.5.0-r991518)
pre-alpha : not complete or compatible
svn = r991518, (Sep  7 2010), Linux/ia32/gcc 4.3.2, release build
http://harmony.apache.org
java.lang.UnsatisfiedLinkError: Can not find the library: libgl.so
    at java.lang.Runtime.loadLibrary0(Runtime.java:806)
    at java.lang.System.loadLibrary(System.java:229)
    at org.apache.harmony.awt.Utils$2.run(Utils.java:44)
    at java.security.AccessController.doPrivilegedImpl(AccessController.java:112)
    at java.security.AccessController.doPrivileged(AccessController.java:75)
    at org.apache.harmony.awt.Utils.loadLibrary(Utils.java:42)
    at org.apache.harmony.awt.wtk.linux.LinuxWTK.<clinit>(LinuxWTK.java:32)
    at java.lang.VMClassRegistry.initializeClass(VMClassRegistry.java)
    at java.lang.Class.forName(Class.java:146)
    at java.lang.Class.forName(Class.java:89)
    at java.awt.Toolkit.createWTK(Toolkit.java:975)
    at java.awt.Toolkit.access$1(Toolkit.java:972)
    at java.awt.Toolkit$1.init(Toolkit.java:555)
    at org.apache.harmony.awt.wtk.NativeEventThread.run(NativeEventThread.java:46)
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
    at java.lang.reflect.Method.invoke(Method.java:316)
    at org.apache.harmony.vm.JarRunner.main(JarRunner.java:89)
Caused by: java.lang.NullPointerException
    at java.awt.Toolkit.init(Toolkit.java:565)
    at java.awt.Toolkit.<init>(Toolkit.java:539)
    at java.awt.ToolkitImpl.<init>(ToolkitImpl.java:40)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:471)
    at java.awt.FlowLayout.<init>(FlowLayout.java:41)
    at java.awt.FlowLayout.<init>(FlowLayout.java:59)
    at java.awt.Panel.<init>(Panel.java:47)
    at com.f13key.seimpl.StartupAwt.<init>(StartupAwt.java:74)
    at Startup.<init>(Startup.java:13)
    at Startup.main(Startup.java:9)
    at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
    ... 2 more
java.lang.NullPointerException
    at java.awt.Toolkit.getNativeEventQueue(Toolkit.java:1172)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:46)
$ env
LC_PAPER=zh_CN.UTF-8
LC_ADDRESS=zh_CN.UTF-8
SSH_AGENT_PID=1953
LC_MONETARY=zh_CN.UTF-8
XDG_DATA_HOME=/home/arli/.local/share
GPG_AGENT_INFO=/tmp/gpg-jM4YOE/S.gpg-agent:1953:1
TERM=xterm
SHELL=/bin/bash
XDG_MENU_PREFIX=xfce-
XDG_SESSION_COOKIE=6a2d8e342e8247ca685b229e00000443-1320581758.826716-627591705
WINDOWID=52430452
LC_NUMERIC=zh_CN.UTF-8
HUSHLOGIN=FALSE
USER=arli
LC_TELEPHONE=zh_CN.UTF-8
SSH_AUTH_SOCK=/tmp/gpg-1PPPZz/S.gpg-agent.ssh
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_CONFIG_DIRS=/etc/xdg:/etc/xdg
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl
MAIL=/var/spool/mail/arli
DESKTOP_SESSION=xfce
LC_MESSAGES=en_GB.UTF-8
QT_IM_MODULE=fcitx
LC_COLLATE=zh_CN.UTF-8
LC_IDENTIFICATION=zh_CN.UTF-8
PWD=/mnt/workshop/developer/java/com.f13key/game1/com.f13key.game.character/dist
JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/
LANG=zh_CN.UTF-8
LC_MEASUREMENT=zh_CN.UTF-8
HOME=/home/arli
SHLVL=5
XDG_CONFIG_HOME=/home/arli/.config
XDG_CACHE_HOME=/home/arli/.cache
LOGNAME=arli
WINEDEBUG=fixme-all
XDG_DATA_DIRS=/usr/share/:/usr/local/share/:/usr/share
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-aJIrGvbdxx,guid=4fbed672b07ba1ef4af1f51500000164
J2SDKDIR=/usr/lib/jvm/java-6-openjdk
LC_CTYPE=zh_CN.UTF-8
WINDOWPATH=7
DISPLAY=:0.0
GTK_IM_MODULE=fcitx
J2REDIR=/usr/lib/jvm/java-6-openjdk/jre
LC_TIME=zh_CN.UTF-8
G_BROKEN_FILENAMES=1
COLORTERM=Terminal
XAUTHORITY=/home/arli/.Xauthority
LC_NAME=zh_CN.UTF-8
_=/usr/bin/env
OLDPWD=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin
PS. run with user(non-root) need, so can't extract the harmony to /usr/xxx
--
--
--
ArLi Weng <***@163.com>
ArLi Weng
2011-11-07 16:57:46 UTC
Permalink
sorry, i meaning i already have try that before "reflect you binaries" but not work even i set(or unset) LD_LIBRARY_PATH=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin, details below:

$ uname -a
Linux alx-nb 3.0-ARCH #1 SMP PREEMPT Wed Oct 19 12:14:48 UTC 2011 i686 Intel(R) Core(TM)2 Duo CPU T5450 @ 1.66GHz GenuineIntel GNU/Linux

$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -showversion
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
Apache Harmony (1.5.0)
DRLVM (1.5.0-r991518)
pre-alpha : not complete or compatible
svn = r991518, (Sep 7 2010), Linux/ia32/gcc 4.3.2, release build
http://harmony.apache.org

$ cat TstAWT.java
import java.awt.Button;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class TstAWT {
public static void main(final String[] args) {
final Frame f = new Frame();
f.add(new Button("test"));
f.setMinimumSize(new Dimension(300, 200));
f.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(final WindowEvent e) {
Runtime.getRuntime().exit(0);
}
});
f.setVisible(true);
System.out.println("done");
}
}

$ env |grep jre
LD_LIBRARY_PATH=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin
JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre

$ strace /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -Djava.library.path=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/ -cp . TstAWT 2>~/1.log

$ gzip ~/1.log
trace log file see attach file.

On Tue, 8 Nov 2011 00:32:13 +0800
Post by ArLi Weng
java.lang.UnsatisfiedLinkError: Can not find the library: libgl.so
at java.lang.Runtime.loadLibrary0(Runtime.java:806)
at java.lang.System.loadLibrary(System.java:229)
at org.apache.harmony.awt.Utils$2.run(Utils.java:44)
at java.security.AccessController.doPrivilegedImpl(AccessController.java:112)
at java.security.AccessController.doPrivileged(AccessController.java:75)
at org.apache.harmony.awt.Utils.loadLibrary(Utils.java:42)
at org.apache.harmony.awt.wtk.linux.LinuxWTK.<clinit>(LinuxWTK.java:32)
at java.lang.VMClassRegistry.initializeClass(VMClassRegistry.java)
at java.lang.Class.forName(Class.java:146)
at java.lang.Class.forName(Class.java:89)
at java.awt.Toolkit.createWTK(Toolkit.java:975)
at java.awt.Toolkit.access$1(Toolkit.java:972)
at java.awt.Toolkit$1.init(Toolkit.java:555)
at org.apache.harmony.awt.wtk.NativeEventThread.run(NativeEventThread.java:46)
java.lang.reflect.InvocationTargetException
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
at java.lang.reflect.Method.invoke(Method.java:316)
at org.apache.harmony.vm.JarRunner.main(JarRunner.java:89)
Caused by: java.lang.NullPointerException
at java.awt.Toolkit.init(Toolkit.java:565)
at java.awt.Toolkit.<init>(Toolkit.java:539)
at java.awt.ToolkitImpl.<init>(ToolkitImpl.java:40)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:471)
at java.awt.FlowLayout.<init>(FlowLayout.java:41)
at java.awt.FlowLayout.<init>(FlowLayout.java:59)
at java.awt.Panel.<init>(Panel.java:47)
at com.f13key.seimpl.StartupAwt.<init>(StartupAwt.java:74)
at Startup.<init>(Startup.java:13)
at Startup.main(Startup.java:9)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
... 2 more
java.lang.NullPointerException
at java.awt.Toolkit.getNativeEventQueue(Toolkit.java:1172)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:46)
On Mon, 7 Nov 2011 00:48:52 -0800 (PST)
Post by Da Feng
http://harmony.apache.org/quickhelp_contributors.html#1.%20Prerequisites
This document give dependencies and setting of JAVA_HOME, it should point to jre, not jre/bin and PATH didn't reflect you binaries.
 
DaFENG
Coder
Telecommunication && Network Industry
----- Original Message -----
Sent: Monday, November 7, 2011 1:28 PM
Subject: Re: [classlib][awt]Problem with libgl.so
apache-harmony-5.0-src-r991518/drlvm/vm/vmcore/src/kernel_classes/javasrc/java/lang/Runtime.java
$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -Djava.library.path=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/ -jar cc-src.jar
but still libgl.so not found.
$ ldd /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/libgl.so
ldd: warning: you do not have execution permission for `/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/libgl.so'
    linux-gate.so.1 =>  (0xb776c000)
    libhythr.so => not found
    libc.so.6 => /lib/libc.so.6 (0xb75a3000)
    libdl.so.2 => /lib/libdl.so.2 (0xb759e000)
    libpng12.so.0 => not found
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb74ae000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0xb7378000)
    libXft.so.2 => /usr/lib/libXft.so.2 (0xb7366000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0xb7354000)
    libXtst.so.6 => /usr/lib/libXtst.so.6 (0xb734f000)
    /lib/ld-linux.so.2 (0xb776d000)
    libm.so.6 => /lib/libm.so.6 (0xb7325000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7307000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb72e9000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb72bb000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7220000)
    libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7218000)
    libXi.so.6 => /usr/lib/libXi.so.6 (0xb7208000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0xb7205000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7200000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb71e8000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb71be000)
    libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb71ad000)
On Mon, 7 Nov 2011 12:13:52 +0800
Post by ArLi Weng
$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -showversion -jar cc-src.jar
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
Apache Harmony (1.5.0)
DRLVM (1.5.0-r991518)
pre-alpha : not complete or compatible
svn = r991518, (Sep  7 2010), Linux/ia32/gcc 4.3.2, release build
http://harmony.apache.org
java.lang.UnsatisfiedLinkError: Can not find the library: libgl.so
    at java.lang.Runtime.loadLibrary0(Runtime.java:806)
    at java.lang.System.loadLibrary(System.java:229)
    at org.apache.harmony.awt.Utils$2.run(Utils.java:44)
    at java.security.AccessController.doPrivilegedImpl(AccessController.java:112)
    at java.security.AccessController.doPrivileged(AccessController.java:75)
    at org.apache.harmony.awt.Utils.loadLibrary(Utils.java:42)
    at org.apache.harmony.awt.wtk.linux.LinuxWTK.<clinit>(LinuxWTK.java:32)
    at java.lang.VMClassRegistry.initializeClass(VMClassRegistry.java)
    at java.lang.Class.forName(Class.java:146)
    at java.lang.Class.forName(Class.java:89)
    at java.awt.Toolkit.createWTK(Toolkit.java:975)
    at java.awt.Toolkit.access$1(Toolkit.java:972)
    at java.awt.Toolkit$1.init(Toolkit.java:555)
    at org.apache.harmony.awt.wtk.NativeEventThread.run(NativeEventThread.java:46)
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
    at java.lang.reflect.Method.invoke(Method.java:316)
    at org.apache.harmony.vm.JarRunner.main(JarRunner.java:89)
Caused by: java.lang.NullPointerException
    at java.awt.Toolkit.init(Toolkit.java:565)
    at java.awt.Toolkit.<init>(Toolkit.java:539)
    at java.awt.ToolkitImpl.<init>(ToolkitImpl.java:40)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:471)
    at java.awt.FlowLayout.<init>(FlowLayout.java:41)
    at java.awt.FlowLayout.<init>(FlowLayout.java:59)
    at java.awt.Panel.<init>(Panel.java:47)
    at com.f13key.seimpl.StartupAwt.<init>(StartupAwt.java:74)
    at Startup.<init>(Startup.java:13)
    at Startup.main(Startup.java:9)
    at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
    ... 2 more
java.lang.NullPointerException
    at java.awt.Toolkit.getNativeEventQueue(Toolkit.java:1172)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:46)
$ env
LC_PAPER=zh_CN.UTF-8
LC_ADDRESS=zh_CN.UTF-8
SSH_AGENT_PID=1953
LC_MONETARY=zh_CN.UTF-8
XDG_DATA_HOME=/home/arli/.local/share
GPG_AGENT_INFO=/tmp/gpg-jM4YOE/S.gpg-agent:1953:1
TERM=xterm
SHELL=/bin/bash
XDG_MENU_PREFIX=xfce-
XDG_SESSION_COOKIE=6a2d8e342e8247ca685b229e00000443-1320581758.826716-627591705
WINDOWID=52430452
LC_NUMERIC=zh_CN.UTF-8
HUSHLOGIN=FALSE
USER=arli
LC_TELEPHONE=zh_CN.UTF-8
SSH_AUTH_SOCK=/tmp/gpg-1PPPZz/S.gpg-agent.ssh
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_CONFIG_DIRS=/etc/xdg:/etc/xdg
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl
MAIL=/var/spool/mail/arli
DESKTOP_SESSION=xfce
LC_MESSAGES=en_GB.UTF-8
QT_IM_MODULE=fcitx
LC_COLLATE=zh_CN.UTF-8
LC_IDENTIFICATION=zh_CN.UTF-8
PWD=/mnt/workshop/developer/java/com.f13key/game1/com.f13key.game.character/dist
JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/
LANG=zh_CN.UTF-8
LC_MEASUREMENT=zh_CN.UTF-8
HOME=/home/arli
SHLVL=5
XDG_CONFIG_HOME=/home/arli/.config
XDG_CACHE_HOME=/home/arli/.cache
LOGNAME=arli
WINEDEBUG=fixme-all
XDG_DATA_DIRS=/usr/share/:/usr/local/share/:/usr/share
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-aJIrGvbdxx,guid=4fbed672b07ba1ef4af1f51500000164
J2SDKDIR=/usr/lib/jvm/java-6-openjdk
LC_CTYPE=zh_CN.UTF-8
WINDOWPATH=7
DISPLAY=:0.0
GTK_IM_MODULE=fcitx
J2REDIR=/usr/lib/jvm/java-6-openjdk/jre
LC_TIME=zh_CN.UTF-8
G_BROKEN_FILENAMES=1
COLORTERM=Terminal
XAUTHORITY=/home/arli/.Xauthority
LC_NAME=zh_CN.UTF-8
_=/usr/bin/env
OLDPWD=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin
PS. run with user(non-root) need, so can't extract the harmony to /usr/xxx
--
--
--
--
ArLi Weng <***@163.com>
Da Feng
2011-11-08 02:03:07 UTC
Permalink
use ldd -r, not just ldd. And ldd -r libhythr.so.

 
DaFENG
Coder
Telecommunication && Network Industry
Gmail:***@gmail.com



----- Original Message -----
From: ArLi Weng <***@163.com>
To: ***@harmony.apache.org
Cc:
Sent: Tuesday, November 8, 2011 12:57 AM
Subject: Re: [classlib][awt]Problem with libgl.so

sorry, i meaning i already have try that before "reflect you binaries" but not work even i set(or unset) LD_LIBRARY_PATH=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin, details below:

$ uname -a
Linux alx-nb 3.0-ARCH #1 SMP PREEMPT Wed Oct 19 12:14:48 UTC 2011 i686 Intel(R) Core(TM)2 Duo CPU T5450 @ 1.66GHz GenuineIntel GNU/Linux

$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -showversion
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
Apache Harmony (1.5.0)
DRLVM (1.5.0-r991518)
pre-alpha : not complete or compatible
svn = r991518, (Sep  7 2010), Linux/ia32/gcc 4.3.2, release build
http://harmony.apache.org

$ cat TstAWT.java
import java.awt.Button;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class TstAWT {
    public static void main(final String[] args) {
        final Frame f = new Frame();
        f.add(new Button("test"));
        f.setMinimumSize(new Dimension(300, 200));
        f.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(final WindowEvent e) {
                Runtime.getRuntime().exit(0);
            }
        });
        f.setVisible(true);
        System.out.println("done");
    }
}

$ env |grep jre
LD_LIBRARY_PATH=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin
JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre

$ strace /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -Djava.library.path=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/ -cp . TstAWT 2>~/1.log

$ gzip ~/1.log
trace log file see attach file.

On Tue, 8 Nov 2011 00:32:13 +0800
Post by ArLi Weng
java.lang.UnsatisfiedLinkError: Can not find the library: libgl.so
    at java.lang.Runtime.loadLibrary0(Runtime.java:806)
    at java.lang.System.loadLibrary(System.java:229)
    at org.apache.harmony.awt.Utils$2.run(Utils.java:44)
    at java.security.AccessController.doPrivilegedImpl(AccessController.java:112)
    at java.security.AccessController.doPrivileged(AccessController.java:75)
    at org.apache.harmony.awt.Utils.loadLibrary(Utils.java:42)
    at org.apache.harmony.awt.wtk.linux.LinuxWTK.<clinit>(LinuxWTK.java:32)
    at java.lang.VMClassRegistry.initializeClass(VMClassRegistry.java)
    at java.lang.Class.forName(Class.java:146)
    at java.lang.Class.forName(Class.java:89)
    at java.awt.Toolkit.createWTK(Toolkit.java:975)
    at java.awt.Toolkit.access$1(Toolkit.java:972)
    at java.awt.Toolkit$1.init(Toolkit.java:555)
    at org.apache.harmony.awt.wtk.NativeEventThread.run(NativeEventThread.java:46)
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
    at java.lang.reflect.Method.invoke(Method.java:316)
    at org.apache.harmony.vm.JarRunner.main(JarRunner.java:89)
Caused by: java.lang.NullPointerException
    at java.awt.Toolkit.init(Toolkit.java:565)
    at java.awt.Toolkit.<init>(Toolkit.java:539)
    at java.awt.ToolkitImpl.<init>(ToolkitImpl.java:40)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:471)
    at java.awt.FlowLayout.<init>(FlowLayout.java:41)
    at java.awt.FlowLayout.<init>(FlowLayout.java:59)
    at java.awt.Panel.<init>(Panel.java:47)
    at com.f13key.seimpl.StartupAwt.<init>(StartupAwt.java:74)
    at Startup.<init>(Startup.java:13)
    at Startup.main(Startup.java:9)
    at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
    ... 2 more
java.lang.NullPointerException
    at java.awt.Toolkit.getNativeEventQueue(Toolkit.java:1172)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:46)
On Mon, 7 Nov 2011 00:48:52 -0800 (PST)
Post by Da Feng
http://harmony.apache.org/quickhelp_contributors.html#1.%20Prerequisites
This document give dependencies and setting of JAVA_HOME, it should point to jre, not jre/bin and PATH didn't reflect you binaries.
 
DaFENG
Coder
Telecommunication && Network Industry
----- Original Message -----
Sent: Monday, November 7, 2011 1:28 PM
Subject: Re: [classlib][awt]Problem with libgl.so
apache-harmony-5.0-src-r991518/drlvm/vm/vmcore/src/kernel_classes/javasrc/java/lang/Runtime.java
$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -Djava.library.path=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/ -jar cc-src.jar
but still libgl.so not found.
$ ldd /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/libgl.so
ldd: warning: you do not have execution permission for `/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/libgl.so'
    linux-gate.so.1 =>  (0xb776c000)
    libhythr.so => not found
    libc.so.6 => /lib/libc.so.6 (0xb75a3000)
    libdl.so.2 => /lib/libdl.so.2 (0xb759e000)
    libpng12.so.0 => not found
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb74ae000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0xb7378000)
    libXft.so.2 => /usr/lib/libXft.so.2 (0xb7366000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0xb7354000)
    libXtst.so.6 => /usr/lib/libXtst.so.6 (0xb734f000)
    /lib/ld-linux.so.2 (0xb776d000)
    libm.so.6 => /lib/libm.so.6 (0xb7325000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7307000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb72e9000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb72bb000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7220000)
    libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7218000)
    libXi.so.6 => /usr/lib/libXi.so.6 (0xb7208000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0xb7205000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7200000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb71e8000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb71be000)
    libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb71ad000)
On Mon, 7 Nov 2011 12:13:52 +0800
Post by ArLi Weng
$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -showversion -jar cc-src.jar
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
Apache Harmony (1.5.0)
DRLVM (1.5.0-r991518)
pre-alpha : not complete or compatible
svn = r991518, (Sep  7 2010), Linux/ia32/gcc 4.3.2, release build
http://harmony.apache.org
java.lang.UnsatisfiedLinkError: Can not find the library: libgl.so
    at java.lang.Runtime.loadLibrary0(Runtime.java:806)
    at java.lang.System.loadLibrary(System.java:229)
    at org.apache.harmony.awt.Utils$2.run(Utils.java:44)
    at java.security.AccessController.doPrivilegedImpl(AccessController.java:112)
    at java.security.AccessController.doPrivileged(AccessController.java:75)
    at org.apache.harmony.awt.Utils.loadLibrary(Utils.java:42)
    at org.apache.harmony.awt.wtk.linux.LinuxWTK.<clinit>(LinuxWTK.java:32)
    at java.lang.VMClassRegistry.initializeClass(VMClassRegistry.java)
    at java.lang.Class.forName(Class.java:146)
    at java.lang.Class.forName(Class.java:89)
    at java.awt.Toolkit.createWTK(Toolkit.java:975)
    at java.awt.Toolkit.access$1(Toolkit.java:972)
    at java.awt.Toolkit$1.init(Toolkit.java:555)
    at org.apache.harmony.awt.wtk.NativeEventThread.run(NativeEventThread.java:46)
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
    at java.lang.reflect.Method.invoke(Method.java:316)
    at org.apache.harmony.vm.JarRunner.main(JarRunner.java:89)
Caused by: java.lang.NullPointerException
    at java.awt.Toolkit.init(Toolkit.java:565)
    at java.awt.Toolkit.<init>(Toolkit.java:539)
    at java.awt.ToolkitImpl.<init>(ToolkitImpl.java:40)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:471)
    at java.awt.FlowLayout.<init>(FlowLayout.java:41)
    at java.awt.FlowLayout.<init>(FlowLayout.java:59)
    at java.awt.Panel.<init>(Panel.java:47)
    at com.f13key.seimpl.StartupAwt.<init>(StartupAwt.java:74)
    at Startup.<init>(Startup.java:13)
    at Startup.main(Startup.java:9)
    at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
    ... 2 more
java.lang.NullPointerException
    at java.awt.Toolkit.getNativeEventQueue(Toolkit.java:1172)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:46)
$ env
LC_PAPER=zh_CN.UTF-8
LC_ADDRESS=zh_CN.UTF-8
SSH_AGENT_PID=1953
LC_MONETARY=zh_CN.UTF-8
XDG_DATA_HOME=/home/arli/.local/share
GPG_AGENT_INFO=/tmp/gpg-jM4YOE/S.gpg-agent:1953:1
TERM=xterm
SHELL=/bin/bash
XDG_MENU_PREFIX=xfce-
XDG_SESSION_COOKIE=6a2d8e342e8247ca685b229e00000443-1320581758.826716-627591705
WINDOWID=52430452
LC_NUMERIC=zh_CN.UTF-8
HUSHLOGIN=FALSE
USER=arli
LC_TELEPHONE=zh_CN.UTF-8
SSH_AUTH_SOCK=/tmp/gpg-1PPPZz/S.gpg-agent.ssh
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_CONFIG_DIRS=/etc/xdg:/etc/xdg
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl
MAIL=/var/spool/mail/arli
DESKTOP_SESSION=xfce
LC_MESSAGES=en_GB.UTF-8
QT_IM_MODULE=fcitx
LC_COLLATE=zh_CN.UTF-8
LC_IDENTIFICATION=zh_CN.UTF-8
PWD=/mnt/workshop/developer/java/com.f13key/game1/com.f13key.game.character/dist
JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/
LANG=zh_CN.UTF-8
LC_MEASUREMENT=zh_CN.UTF-8
HOME=/home/arli
SHLVL=5
XDG_CONFIG_HOME=/home/arli/.config
XDG_CACHE_HOME=/home/arli/.cache
LOGNAME=arli
WINEDEBUG=fixme-all
XDG_DATA_DIRS=/usr/share/:/usr/local/share/:/usr/share
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-aJIrGvbdxx,guid=4fbed672b07ba1ef4af1f51500000164
J2SDKDIR=/usr/lib/jvm/java-6-openjdk
LC_CTYPE=zh_CN.UTF-8
WINDOWPATH=7
DISPLAY=:0.0
GTK_IM_MODULE=fcitx
J2REDIR=/usr/lib/jvm/java-6-openjdk/jre
LC_TIME=zh_CN.UTF-8
G_BROKEN_FILENAMES=1
COLORTERM=Terminal
XAUTHORITY=/home/arli/.Xauthority
LC_NAME=zh_CN.UTF-8
_=/usr/bin/env
OLDPWD=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin
PS. run with user(non-root) need, so can't extract the harmony to /usr/xxx
--
--
--
--
ArLi Weng <***@163.com>
ArLi Weng
2011-11-08 16:46:28 UTC
Permalink
i found the missing is libpng12.so.0 (i have libpng14)
i try extract libpng12 to bin/, work fine, but run that code
have new problem, dead in the:

Thread [main] (Suspended)
X11.XmuLookupStandardColormap(long, int, long, int, long, int, int) line: not available [native method]
XGraphicsConfiguration.obtainRGBColorMap() line: 74
XGraphicsConfiguration.<init>(XGraphicsDevice, X11$XVisualInfo) line: 50
XGraphicsDevice.createConfigs() line: 142
XGraphicsDevice.getConfigs() line: 74
XGraphicsDevice.getDefaultConfiguration() line: 165
Frame(Window).getGraphicsConfiguration(GraphicsConfiguration) line: 1121
Frame(Window).<init>(Window, GraphicsConfiguration) line: 165
Frame.<init>(String, GraphicsConfiguration) line: 118
Frame.<init>(String) line: 130
Frame.<init>() line: 139
TstAWT.main(String[]) line: 9

but direct call Runtime.getRuntime().loadLibrary("Xmu") got succeed.
i guess i have same problem(but that's 5 years ago..)
http://mail-archives.apache.org/mod_mbox/harmony-dev/200611.mbox/%***@d06av02.portsmouth.uk.ibm.com%3E

$ ls /usr/lib/libXmu*
/usr/lib/libXmu.so /usr/lib/libXmu.so.6.2.0 /usr/lib/libXmuu.so.1
/usr/lib/libXmu.so.6 /usr/lib/libXmuu.so /usr/lib/libXmuu.so.1.0.0

$ cat xmutest.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/Xmu/StdCmap.h>

int main(int argc, char **argv)
{
Display *display;
int screen;
Visual* visual;
int depth;
int status;

if ((display = XOpenDisplay(NULL)) == NULL) {
return (-1);
}
screen = DefaultScreen(display);
visual = DefaultVisual(display,screen);
depth = DefaultDepth(display,screen);
status = XmuLookupStandardColormap(display, screen,
XVisualIDFromVisual(visual),
depth,
XA_RGB_DEFAULT_MAP, False, True);
printf("status = %d\n", status);
}

$ gcc -I/usr/X11R6/include -o xmutest xmutest.c -L/usr/X11R6/lib -lX11 -lXmu

$ ./xmutest
status = 1

how can i continue ..?

On Mon, 7 Nov 2011 18:03:07 -0800 (PST)
Post by Da Feng
use ldd -r, not just ldd. And ldd -r libhythr.so.
 
DaFENG
Coder
Telecommunication && Network Industry
----- Original Message -----
Sent: Tuesday, November 8, 2011 12:57 AM
Subject: Re: [classlib][awt]Problem with libgl.so
$ uname -a
$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -showversion
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
Apache Harmony (1.5.0)
DRLVM (1.5.0-r991518)
pre-alpha : not complete or compatible
svn = r991518, (Sep  7 2010), Linux/ia32/gcc 4.3.2, release build
http://harmony.apache.org
$ cat TstAWT.java
import java.awt.Button;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class TstAWT {
    public static void main(final String[] args) {
        final Frame f = new Frame();
        f.add(new Button("test"));
        f.setMinimumSize(new Dimension(300, 200));
        f.addWindowListener(new WindowAdapter() {
            public void windowClosing(final WindowEvent e) {
                Runtime.getRuntime().exit(0);
            }
        });
        f.setVisible(true);
        System.out.println("done");
    }
}
$ env |grep jre
LD_LIBRARY_PATH=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin
JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre
$ strace /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -Djava.library.path=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/ -cp . TstAWT 2>~/1.log
$ gzip ~/1.log
trace log file see attach file.
On Tue, 8 Nov 2011 00:32:13 +0800
--
ArLi Weng <***@163.com>
Da Feng
2011-11-09 05:59:16 UTC
Permalink
Two choices:

1. use gdb to step, find why it suspend
2. use swt not awt. I perfer swt on linux. And it has a swt awt bridge.

 
DaFENG
Coder
Telecommunication && Network Industry
Gmail:***@gmail.com



----- Original Message -----
From: ArLi Weng <***@163.com>
To: ***@harmony.apache.org
Cc:
Sent: Wednesday, November 9, 2011 12:46 AM
Subject: Re: [classlib][awt]Problem with libgl.so

i found the missing is libpng12.so.0 (i have libpng14)
i try extract libpng12 to bin/, work fine, but run that code
have new problem, dead in the:

Thread [main] (Suspended)   
    X11.XmuLookupStandardColormap(long, int, long, int, long, int, int) line: not available [native method]   
    XGraphicsConfiguration.obtainRGBColorMap() line: 74   
    XGraphicsConfiguration.<init>(XGraphicsDevice, X11$XVisualInfo) line: 50   
    XGraphicsDevice.createConfigs() line: 142   
    XGraphicsDevice.getConfigs() line: 74   
    XGraphicsDevice.getDefaultConfiguration() line: 165   
    Frame(Window).getGraphicsConfiguration(GraphicsConfiguration) line: 1121   
    Frame(Window).<init>(Window, GraphicsConfiguration) line: 165   
    Frame.<init>(String, GraphicsConfiguration) line: 118   
    Frame.<init>(String) line: 130   
    Frame.<init>() line: 139   
    TstAWT.main(String[]) line: 9   

but direct call Runtime.getRuntime().loadLibrary("Xmu") got succeed.
i guess i have same problem(but that's 5 years ago..)
http://mail-archives.apache.org/mod_mbox/harmony-dev/200611.mbox/%***@d06av02.portsmouth.uk.ibm.com%3E

$ ls /usr/lib/libXmu*
/usr/lib/libXmu.so    /usr/lib/libXmu.so.6.2.0  /usr/lib/libXmuu.so.1
/usr/lib/libXmu.so.6  /usr/lib/libXmuu.so      /usr/lib/libXmuu.so.1.0.0

$ cat xmutest.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/Xmu/StdCmap.h>

int main(int argc, char **argv)
{
    Display *display;
    int screen;
    Visual* visual;
    int depth;
    int status;

    if ((display = XOpenDisplay(NULL)) == NULL) {
        return (-1);
    }
    screen = DefaultScreen(display);
    visual = DefaultVisual(display,screen);
    depth = DefaultDepth(display,screen);
    status = XmuLookupStandardColormap(display, screen,
                                      XVisualIDFromVisual(visual),
depth,
                                      XA_RGB_DEFAULT_MAP, False, True);
    printf("status = %d\n", status);
}

$ gcc -I/usr/X11R6/include -o xmutest xmutest.c -L/usr/X11R6/lib -lX11 -lXmu

$ ./xmutest
status = 1

how can i continue ..?

On Mon, 7 Nov 2011 18:03:07 -0800 (PST)
Post by Da Feng
use ldd -r, not just ldd. And ldd -r libhythr.so.
 
DaFENG
Coder
Telecommunication && Network Industry
----- Original Message -----
Sent: Tuesday, November 8, 2011 12:57 AM
Subject: Re: [classlib][awt]Problem with libgl.so
$ uname -a
$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -showversion
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
Apache Harmony (1.5.0)
DRLVM (1.5.0-r991518)
pre-alpha : not complete or compatible
svn = r991518, (Sep  7 2010), Linux/ia32/gcc 4.3.2, release build
http://harmony.apache.org
$ cat TstAWT.java
import java.awt.Button;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class TstAWT {
    public static void main(final String[] args) {
        final Frame f = new Frame();
        f.add(new Button("test"));
        f.setMinimumSize(new Dimension(300, 200));
        f.addWindowListener(new WindowAdapter() {
            public void windowClosing(final WindowEvent e) {
                Runtime.getRuntime().exit(0);
            }
        });
        f.setVisible(true);
        System.out.println("done");
    }
}
$ env |grep jre
LD_LIBRARY_PATH=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin
JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre
$ strace /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -Djava.library.path=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/ -cp . TstAWT 2>~/1.log
$ gzip ~/1.log
trace log file see attach file.
On Tue, 8 Nov 2011 00:32:13 +0800
--
ArLi Weng <***@163.com>
Mark Hindess
2011-11-07 19:20:30 UTC
Permalink
Post by ArLi Weng
i download the Apache Harmony 5.0M15 JRE for 32-bit Linux from apache.org,
but not work for me, when i create an awt.frame at java code, run it just
tell me libgl.so not exist, but it exist in the
/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/libgl.so, my command
$ /mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin/java -showversion -jar cc-src.jar
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
Apache Harmony (1.5.0)
DRLVM (1.5.0-r991518)
pre-alpha : not complete or compatible
svn =3D r991518, (Sep 7 2010), Linux/ia32/gcc 4.3.2, release build
http://harmony.apache.org
java.lang.UnsatisfiedLinkError: Can not find the library: libgl.so
at java.lang.Runtime.loadLibrary0(Runtime.java:806)
I suspect it is a simple missing pre-requisite, try re-checking the list at:

http://harmony.apache.org/quickhelp_contributors.html#1.%20Prerequisites

Also try:

JREBIN=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre/bin
LD_LIBRARY_PATH=$JREBIN/default:$JREBIN ldd $JREBIN/libgl.so

I suspect that one of the libgl.so library dependencies is missing.

HTH,
Mark
Loading...