You are not logged in.

#1 2009-04-30 17:14:14

hubertstar
Member
Registered: 2008-04-10
Posts: 22

Using tesing, i can't run any swing java application.

Any swing application, ex. xxe or openproj.

Using openjdk6, i got those error:

env:

[hubert@hubert-dell bin]$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.5pre-r059f6ba0c7dd) (ArchLinux-1.5_hg20090429-1-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b10, mixed mode)

error:

[hubert@hubert-dell bin]$ ./xxe
internal error: cannot create application: java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/motif21/libmawt.so
+---------------------------------------
| java.lang.ClassLoader.loadLibrary(ClassLoader.java:1666)
| java.lang.Runtime.load0(Runtime.java:787)
| java.lang.System.load(System.java:1022)
| java.lang.ClassLoader$NativeLibrary.load(Native Method)
| java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767)
| java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684)
| java.lang.Runtime.loadLibrary0(Runtime.java:840)
| java.lang.System.loadLibrary(System.java:1047)
| sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
| sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
| java.security.AccessController.doPrivileged(Native Method)
| java.awt.Toolkit.loadLibraries(Toolkit.java:1610)
| java.awt.Toolkit.<clinit>(Toolkit.java:1632)
| java.awt.Color.<clinit>(Color.java:279)
| javax.swing.plaf.metal.MetalTheme.<clinit>(MetalTheme.java:76)
| javax.swing.plaf.metal.MetalLookAndFeel.getCurrentTheme(MetalLookAndFeel.java:1681)
| javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(MetalLookAndFeel.java:1576)
| javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1598)
| javax.swing.UIManager.setLookAndFeel(UIManager.java:545)
| javax.swing.UIManager.setLookAndFeel(UIManager.java:585)
+---------------------------------------

then i change java-runtime to sun java sdk.

env:

[hubert@hubert-dell bin]$ java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
[hubert@hubert-dell bin]$

error:

[hubert@hubert-dell bin]$ ./xxe
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f02743bb438, pid=16636, tid=139648504359248
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode linux-amd64)
# Problematic frame:
# C  [libc.so.6+0x30438]  catgets+0x18
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid16636.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
./xxe: line 40: 16636 已放弃               java $mem $opt -DXXE_GUI="$XXE_GUI" -DXXE_ADDON_PATH="$XXE_ADDON_PATH" -DXXE_USER_PREFERENCES="$XXE_USER_PREFERENCES" -classpath "$cp" com.xmlmind.xmleditapp.start.Start "$@"
[hubert@hubert-dell bin]$

My archlinux:

[hubert@hubert-dell ~]$ uname -a
Linux hubert-dell 2.6.29-ARCH #1 SMP PREEMPT Wed Apr 29 15:36:46 CEST 2009 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel GNU/Linux
[hubert@hubert-dell ~]$ yaourt -Q glibc openjdk6 kernel26
==> List all installed packages
local/glibc 2.9-7
local/openjdk6 1.5_hg20090429-1
local/kernel26 2.6.29.2-1
[hubert@hubert-dell ~]$

Last edited by hubertstar (2009-04-30 17:15:28)

Offline

#2 2009-04-30 20:04:20

hubertstar
Member
Registered: 2008-04-10
Posts: 22

Re: Using tesing, i can't run any swing java application.

ok, this's not a bug.

I'm install eioffice(Yongzhong office, a chinese office software) and test it, and i have to set AWT_TOOLKIT=MToolkit (Running eio with compiz).

That's the problem.

unset AWT_TOOLKIT

no errors.

Offline

Board footer

Powered by FluxBB