harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ArLi Weng <...@163.com>
Subject [classlib][awt]Problem with libgl.so
Date Mon, 07 Nov 2011 04:13:52 GMT
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 <url@163.com>

Mime
View raw message