Thread: [Sablevm-developer] wanted to try AWT - failure report
Brought to you by:
egagnon
From: Grzegorz P. <ga...@de...> - 2002-08-20 14:52:54
|
Hi! In the course of testing debian packages I fetched TestAWT.java from GNU Classpath CVS, compiled it with jikes and ran. greg@greg:~/deb-pkgs/sablevm/testing$ /usr/bin/sablevm -Y TestAWT INSET:java.awt.Insets(top=3D0,bottom=3D0,left=3D0,right=3D0) loading gtkpeer java.lang.UnsatisfiedLinkError: Could not load library /usr/lib/sablevm/libgnu-java-awt-peer-gtk-1.0.1.so at java.lang.Runtime.load(Runtime.java:633) at java.lang.Runtime.loadLibrary(Runtime.java:656) at java.lang.System.loadLibrary(System.java:620) at gnu.java.awt.peer.gtk.GtkToolkit.static{}(GtkToolkit.java:74) at java.lang.Class.step8(Class.java) at java.lang.Class.initialize(Class.java:200) at java.lang.VMClassLoader.initializeClass(VMClassLoader.java) at java.lang.Class.forName(Class.java:350) at java.lang.Class.forName(Class.java:268) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:406) at java.awt.MenuComponent.static{}(MenuComponent.java:84) at java.lang.Class.step8(Class.java) at java.lang.Class.initialize(Class.java:200) at java.lang.Class.step7(Class.java) at java.lang.Class.initialize(Class.java:184) at MainWindow.MainWindow(TestAWT.java:127) at TestAWT.main(TestAWT.java:53) at java.lang.VirtualMachine.invokeMain(VirtualMachine.java) at java.lang.VirtualMachine.main(VirtualMachine.java:88) [it hangs here] greg@greg:~/deb-pkgs/sablevm/testing$ ls -al /usr/lib/sablevm/libgnu-java-awt-peer-gtk* =20 -rw-r--r-- 1 root root 71972 2002-08-13 13:42 /usr/lib/sablevm/libgnu-java-awt-peer-gtk-1.0.1.so -rw-r--r-- 1 root root 810 2002-08-13 13:42 /usr/lib/sablevm/libgnu-java-awt-peer-gtk.la lrwxrwxrwx 1 root root 33 2002-08-20 15:59 /usr/lib/sablevm/libgnu-java-awt-peer-gtk.so -> libgnu-java-awt-peer-gtk-1.0.1.so Again - this can be easily my packaging failure - that's why I ask for help on the ML and I don't put it into BTS. Any ideas or hints? Grzegorz B. Prokopski PS: It would be nice to have sablevm-dev list subscribed to all BTS submissions. |
From: John L. <je...@pi...> - 2002-08-20 15:50:08
|
Have you built that library? You need to build classpath with: configure --enable-gtk-peers John On Tue, 2002-08-20 at 15:53, Grzegorz Prokopski wrote: > Hi! > > In the course of testing debian packages I fetched TestAWT.java from > GNU Classpath CVS, compiled it with jikes and ran. > > greg@greg:~/deb-pkgs/sablevm/testing$ /usr/bin/sablevm -Y TestAWT > INSET:java.awt.Insets(top=0,bottom=0,left=0,right=0) > loading gtkpeer > java.lang.UnsatisfiedLinkError: Could not load library > /usr/lib/sablevm/libgnu-java-awt-peer-gtk-1.0.1.so at > java.lang.Runtime.load(Runtime.java:633) > at java.lang.Runtime.loadLibrary(Runtime.java:656) > at java.lang.System.loadLibrary(System.java:620) > at gnu.java.awt.peer.gtk.GtkToolkit.static{}(GtkToolkit.java:74) > at java.lang.Class.step8(Class.java) > at java.lang.Class.initialize(Class.java:200) > at java.lang.VMClassLoader.initializeClass(VMClassLoader.java) > at java.lang.Class.forName(Class.java:350) > at java.lang.Class.forName(Class.java:268) > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:406) > at java.awt.MenuComponent.static{}(MenuComponent.java:84) > at java.lang.Class.step8(Class.java) > at java.lang.Class.initialize(Class.java:200) > at java.lang.Class.step7(Class.java) > at java.lang.Class.initialize(Class.java:184) > at MainWindow.MainWindow(TestAWT.java:127) > at TestAWT.main(TestAWT.java:53) > at java.lang.VirtualMachine.invokeMain(VirtualMachine.java) > at java.lang.VirtualMachine.main(VirtualMachine.java:88) > [it hangs here] > > greg@greg:~/deb-pkgs/sablevm/testing$ ls -al > /usr/lib/sablevm/libgnu-java-awt-peer-gtk* > -rw-r--r-- 1 root root 71972 2002-08-13 13:42 > /usr/lib/sablevm/libgnu-java-awt-peer-gtk-1.0.1.so > -rw-r--r-- 1 root root 810 2002-08-13 13:42 > /usr/lib/sablevm/libgnu-java-awt-peer-gtk.la > lrwxrwxrwx 1 root root 33 2002-08-20 15:59 > /usr/lib/sablevm/libgnu-java-awt-peer-gtk.so -> > libgnu-java-awt-peer-gtk-1.0.1.so > > Again - this can be easily my packaging failure - that's why I ask > for help on the ML and I don't put it into BTS. > > Any ideas or hints? > > Grzegorz B. Prokopski > > PS: It would be nice to have sablevm-dev list subscribed to all BTS > submissions. > > |
From: Archie C. <ar...@de...> - 2002-08-20 21:00:43
|
John Leuner writes: > Have you built that library? > > You need to build classpath with: > > configure --enable-gtk-peers According to sablevm-native-library-1.0.3/classpath-docs/INSTALL, it's "--enable-gtk-peer" and that's the default; you must specify "--disable-gtk-peer" to disable it. In any case, it appears to me that ./configure completely ignores this flag anyway. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com |
From: John L. <je...@pi...> - 2002-08-22 09:23:24
|
You're right, it might have been different a while back. John Leuner On Tue, 2002-08-20 at 21:53, Archie Cobbs wrote: > John Leuner writes: > > Have you built that library? > > > > You need to build classpath with: > > > > configure --enable-gtk-peers > > According to sablevm-native-library-1.0.3/classpath-docs/INSTALL, > it's "--enable-gtk-peer" and that's the default; you must specify > "--disable-gtk-peer" to disable it. > > In any case, it appears to me that ./configure completely ignores > this flag anyway. > > -Archie > > __________________________________________________________________________ > Archie Cobbs * Packet Design * http://www.packetdesign.com > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Sablevm-developer mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-developer |
From: Grzegorz P. <ga...@de...> - 2002-08-20 16:15:25
|
W li=B6cie z wto, 20-08-2002, godz. 17:46, John Leuner pisze:=20 > Have you built that library? > You need to build classpath with: > configure --enable-gtk-peers I wonder if you _really_ have read my mail till the end. :-/ Here's the error: > > greg@greg:~/deb-pkgs/sablevm/testing$ /usr/bin/sablevm -Y TestAWT > > INSET:java.awt.Insets(top=3D0,bottom=3D0,left=3D0,right=3D0) > > loading gtkpeer > > java.lang.UnsatisfiedLinkError: Could not load library > > /usr/lib/sablevm/libgnu-java-awt-peer-gtk-1.0.1.so at And here I show you part of the content of /usr/lib/sablevm > > greg@greg:~/deb-pkgs/sablevm/testing$ ls -al > > /usr/lib/sablevm/libgnu-java-awt-peer-gtk* =20 > > -rw-r--r-- 1 root root 71972 2002-08-13 13:42 > > /usr/lib/sablevm/libgnu-java-awt-peer-gtk-1.0.1.so ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ where you can easily find the library > > -rw-r--r-- 1 root root 810 2002-08-13 13:42 > > /usr/lib/sablevm/libgnu-java-awt-peer-gtk.la > > lrwxrwxrwx 1 root root 33 2002-08-20 15:59 > > /usr/lib/sablevm/libgnu-java-awt-peer-gtk.so -> > > libgnu-java-awt-peer-gtk-1.0.1.so I rebuilded sablevm-nativelib-1.0.1 adding --enable-gtk-peers explicitely to ./configure (if it's not "default" there for sablevm?). I didn't notoice any change. I'd be grateful if you try to help me :-) once again Best regards Grzegorz B. Prokopski PS: Does this work for you with sablevm? |
From: John L. <je...@pi...> - 2002-08-20 16:28:49
|
On Tue, 2002-08-20 at 17:16, Grzegorz Prokopski wrote: > W li=B6cie z wto, 20-08-2002, godz. 17:46, John Leuner pisze:=20 > > Have you built that library? > > You need to build classpath with: > > configure --enable-gtk-peers > I wonder if you _really_ have read my mail till the end. :-/ :-) I skimmed over the last part. > I rebuilded sablevm-nativelib-1.0.1 adding --enable-gtk-peers > explicitely to ./configure (if it's not "default" there for sablevm?). > I didn't notoice any change. >=20 > I'd be grateful if you try to help me :-) once again >=20 > Best regards >=20 > Grzegorz B. Prokopski >=20 > PS: Does this work for you with sablevm? I have used the GTK peers with kissme.=20 I assume the other Classpath dynamically-loaded native code works with sablevm, so it's probably not a JNI issue. I haven't got TestAWT to work yet. (It loads and displays) but doesn't work (with kissme). John Leuner =20 > Here's the error: > > > greg@greg:~/deb-pkgs/sablevm/testing$ /usr/bin/sablevm -Y TestAWT > > > INSET:java.awt.Insets(top=3D0,bottom=3D0,left=3D0,right=3D0) > > > loading gtkpeer > > > java.lang.UnsatisfiedLinkError: Could not load library > > > /usr/lib/sablevm/libgnu-java-awt-peer-gtk-1.0.1.so at >=20 > And here I show you part of the content of /usr/lib/sablevm > > > greg@greg:~/deb-pkgs/sablevm/testing$ ls -al > > > /usr/lib/sablevm/libgnu-java-awt-peer-gtk* =20 > > > -rw-r--r-- 1 root root 71972 2002-08-13 13:42 > > > /usr/lib/sablevm/libgnu-java-awt-peer-gtk-1.0.1.so > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > where you can easily find the library > > > -rw-r--r-- 1 root root 810 2002-08-13 13:42 > > > /usr/lib/sablevm/libgnu-java-awt-peer-gtk.la > > > lrwxrwxrwx 1 root root 33 2002-08-20 15:59 > > > /usr/lib/sablevm/libgnu-java-awt-peer-gtk.so -> > > > libgnu-java-awt-peer-gtk-1.0.1.so >=20 |