|
我这里运行不正常,不过可以确定不是java本身的问题了。估计是和新的xorg的冲突。在现在的arch的环境下面运行,会出现lock assertion error.我在同样的机器上面,启动u盘里面的puppylinux,使用arch的sun java.运行wtk是正常的。
环境稍稍有些不同。 puppylinux的版本是3.01。 使用xvesa和xorg(版本应该比arch的稍低,当然也不排除是xorg的配置问题。), glibc肯定也要比arch的老一点点,我的arch整天同步的。
sun-wtk在arch上面的错误现象是打开jar程序,运行模拟器,模拟器界面是不能响应鼠标点击事件的,需要先在file里面pause一下,然后再resume一下,这样模拟器就有响应了,但是程序还是不能运行起来,很多nullpointer错误。
具体的wtk在arch上面的错误信息如下:
- [root@sgu fluke]# /opt/sun-wtk/WTK2.5.1/bin/ktoolbar
- Locking assertion failure. Backtrace:
- #0 /usr/lib/libxcb-xlib.so.0 [0xb5c62767]
- #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb5c628b1]
- #2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xab6d6a8d]
- #3 /opt/java/jre/lib/i386/xawt/libmawt.so [0xab7ed64e]
- #4 /opt/java/jre/lib/i386/xawt/libmawt.so [0xab7cbf97]
- #5 /opt/java/jre/lib/i386/xawt/libmawt.so [0xab7cc248]
- #6 /opt/java/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xab7cc54f]
- #7 [0xb5cf14ee]
- #8 [0xb5ce9ea5]
- #9 [0xb5ce9ea5]
- #10 [0xb5ce7243]
- #11 /opt/java/jre/lib/i386/client/libjvm.so [0x620bc6d]
- #12 /opt/java/jre/lib/i386/client/libjvm.so [0x630a828]
- #13 /opt/java/jre/lib/i386/client/libjvm.so [0x620bb00]
- #14 /opt/java/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
- #15 /opt/java/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7cf196d]
- #16 [0xb5cf14ee]
- #17 [0xb5ce9d4d]
- #18 [0xb5ce7243]
- #19 /opt/java/jre/lib/i386/client/libjvm.so [0x620bc6d]
- Locking assertion failure. Backtrace:
- #0 /usr/lib/libxcb-xlib.so.0 [0xb5c62767]
- #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb5c6281e]
- #2 /usr/lib/libX11.so.6 [0xab6d5e08]
- #3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0xab6ccb76]
- #4 /opt/java/jre/lib/i386/xawt/libmawt.so [0xab7cb249]
- #5 /opt/java/jre/lib/i386/xawt/libmawt.so [0xab7cb495]
- #6 /opt/java/jre/lib/i386/xawt/libmawt.so [0xab7cc2f9]
- #7 /opt/java/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xab7cc54f]
- #8 [0xb5cf14ee]
- #9 [0xb5ce9ea5]
- #10 [0xb5ce9ea5]
- #11 [0xb5ce7243]
- #12 /opt/java/jre/lib/i386/client/libjvm.so [0x620bc6d]
- #13 /opt/java/jre/lib/i386/client/libjvm.so [0x630a828]
- #14 /opt/java/jre/lib/i386/client/libjvm.so [0x620bb00]
- #15 /opt/java/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
- #16 /opt/java/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7cf196d]
- #17 [0xb5cf14ee]
- #18 [0xb5ce9d4d]
- #19 [0xb5ce7243]
- OTA server emulation started ...
- HTTPS server emulation started ...
- [root@sgu fluke]#
复制代码
看样子是和xlib有关。有条件的朋友希望能告知一下sun-wtk在你的机器上面的运行情况。我的机器已经更新到12月10号,这个样子。没有用unstable源。
[root@sgu fluke]# pacman -Qi xorg
Name : xorg
Version : 11R7.0-1
[root@sgu fluke]# pacman -Qi glibc
Name : glibc
Version : 2.7-7
[root@sgu fluke]# pacman -Qi jre
Name : jre
Version : 6u3-1
wtk我用的是2.5, 2.2也试过,一样
jre用过blackdown的也不行。 |
|