harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ArLi Weng <...@163.com>
Subject Re: [classlib][awt]Problem with libgl.so
Date Mon, 07 Nov 2011 16:32:13 GMT
of course, i have try that already:

[arli@alx-nb jre]$ export JAVA_HOME=/mnt/public/gPRG/JavaDev/harmony-5.0-jdk-991518/jre
[arli@alx-nb jre]$ cd
[arli@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)
Da Feng <jvfengda@yahoo.com> wrote:

> 
> 
> 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:sunspiderX@gmail.com
> 
> 
> 
> ----- Original Message -----
> From: ArLi Weng <url@163.com>
> To: dev@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
> ArLi Weng <url@163.com> wrote:
> 
> > 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>
> 
> 
> -- 
> ArLi Weng <url@163.com>
> 


-- 
ArLi Weng <url@163.com>

Mime
View raw message