Re: [classlib][awt]Problem with libgl.so
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:sunspid...@gmail.com - Original Message - From: ArLi Weng u...@163.com To: dev@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/%3c200611271207.karc7zf8000...@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) Da Feng jvfen...@yahoo.com wrote: use ldd -r, not just ldd. And ldd -r libhythr.so. DaFENG Coder Telecommunication Network Industry Gmail:sunspid...@gmail.com - Original Message - From: ArLi Weng u...@163.com To: dev@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 -- ArLi Weng u...@163.com
Re: [classlib][awt]Problem with libgl.so
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:sunspid...@gmail.com - Original Message - From: ArLi Weng u...@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 (0xb722) 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 (0xb720) 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 u...@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
Re: [classlib][awt]Problem with libgl.so
use ldd -r, not just ldd. And ldd -r libhythr.so. DaFENG Coder Telecommunication Network Industry Gmail:sunspid...@gmail.com - Original Message - From: ArLi Weng u...@163.com To: dev@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 ArLi Weng u...@163.com wrote: 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 jvfen...@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:sunspid...@gmail.com - Original Message - From: ArLi Weng u
Re: Moving Apache Harmony to the Attic
Hi: I have not directly contribute to Harmony yet, but the project I'm working on currently performs better with harmony lib. Some one wants to develop support for openJdk class lib, I still prefer modularized structure. I thought java core should be defined as self-hosting, that is able to build the runtime itself. The other libs are auxiliary. I personally have plan to fix bugs for harmony. I run harmony on linux, and find thread lib has bugs. If it goes attic, does it mean I have to keep all fixes for myself? Then -- -1 DaFENG Coder Telecommunication Network Industry Gmail:sunspid...@gmail.com - Original Message - From: Jochen Theodorou blackd...@gmx.org To: dev@harmony.apache.org Cc: Sent: Saturday, October 29, 2011 9:21 PM Subject: Re: Moving Apache Harmony to the Attic Am 29.10.2011 14:53, schrieb Tim Ellison: On 29/10/2011 10:13, Matthias Wessendorf wrote: Sounds right... Too sad to see this happening. Will the code remain in an svn repo? I don't see much in the attic svn repo. The process is described here [1]. The Harmony SVN will be marked read-only, so anyone can still obtain the code to use under the usual Apache terms. We would not allow any commits as that requires an active PMC to provide the oversight of the incoming changes. [1] http://attic.apache.org/process are there still people willing to commit to the project? bye blackdrag
Re: [admin] Automated Monthly Reminder
Hello: I'm developing MRP/Jikes RVM with harmony as lib provider. My question is, have you ever changed your road map? I find it can't pass dacapo test cases or jvm spec 2008 cases. Are you just waiting for TCK? Real projects are tests on their own. dacapo just run tests from different opensource projest to verify the correctness of the vm. I do think those test cases are abundant. DaFENG Coder Telecommunication Network Industry Pudong Shanghai China - Original Message From: telli...@apache.org telli...@apache.org To: dev@harmony.apache.org Sent: Tue, February 1, 2011 8:00:09 AM Subject: [admin] Automated Monthly Reminder This is a monthly automated mailing to the Apache Harmony dev list. The Apache Harmony project welcomes the participation and input of anyone interested in open source Java platform, the goal of our project. For more information about the Apache Harmony project, please see the project website. http://harmony.apache.org/ The terms of use for the Harmony mail lists can be found here : http://harmony.apache.org/mailing.html and they are This forum has been created for public communication about projects of The Apache Software Foundation (the Foundation), a Delaware nonprofit corporation classified as a public charity under 501(c)(3). All communication intentionally submitted to the Foundation on this forum is considered a Contribution to the Foundation unless otherwise noted in the communication. The terms and conditions that apply to your Contributions are defined by either a contributor license agreement (CLA) signed by you and/or your employer or, if no such CLA is on file at the Foundation, by the terms and conditions of Contributions as defined by the Apache License, Version 2.0. Note : * If you do not wish your post to be a Contribution, we would prefer that you do not post it. However, in the event that you do, please mark as NOT A CONTRIBUTION at the top of the posting. * Do not post any code that is not your original work, or code that you do not have clear authorization to contribute. * Do not engage in detailed discussion of any implementation that you have been exposed to unless such implementation is your own implementation or available to everyone under an open source license compatible with the Apache License, Version 2. * Under no circumstances will any committer accept code for inclusion in our SVN repository contributed on the mailing list unless it is from an Authorized Contributor, as defined here: http://harmony.apache.org/contribution_policy.html If you have any questions, please do not hesitate to ask on the dev list. If there are any questions that are of a private or sensitive nature, please send them to priv...@harmony.apache.org