> Date: Mon, 08 Sep 2008 16:24:15 +0200 > From: Luca Morettoni <[EMAIL PROTECTED]>
> I try to install java5SE under indiana snv_96 (for sun spot developing) > put if I try to intall java5 pkg's I receive the warning about motif > package, and when I run javaws I receive this error: > > $ javaws > Exception in thread "main" java.lang.UnsatisfiedLinkError: > /usr/jdk/instances/jdk1.5.0/jre/lib/i386/motif21/libmawt.so: ld.so.1: > java: fatal: libXm.so.4: open failed: No such file or directory > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647) > at java.lang.Runtime.load0(Runtime.java:769) > > any hope to use java5 and/or sun Spot under opensolaris? The default AWT toolkit in JDK 5 on Solaris is Motif, but OpenSolaris doesn't (yet, so far as I know) have a Motif library. In JDK 5 there's an alternative AWT toolkit, XAWT, which is a complete rewrite that depends only upon Xlib and contains very little native code. XAWT became the default on Solaris in JDK 6, but you can enable it on JDK 5 by following the instructions in the JDK 5 AWT guide [1]. A higher-level question, though, is why do you need JDK 5 in the first place? If there's a compatibility issue preventing you from using JDK 6 then we'd really like to know about it. - Mark [1] http://java.sun.com/j2se/1.5.0/docs/guide/awt/1.5/xawt.html
