Beryl and Java apps
While using Beryl as my default window manager, I noticed that some java applications didn’t work correctly, for example the XenServer Client.
The application started correctly but I only saw a gray screen.
Whenever my Metacity window manager (that’s the one of gnome) was active, instead of Beryl, the application works as it was meant to be.
This problem is explained in the beryl wiki.
The solution is also mentioned there.
Because I’m using java 5 (1.5.0u11 from Sun) the fix is very simple.
I added following line at the end of /etc/bashrc.
export AWT_TOOLKIT=MToolkit
After restarting the X server the java applications works without any problems.
June 4th, 2007
Raskas,
wasn’t enough for me.
It was still missing a library ‘libXt’, solved with ‘yum install libXt’
The error message nicely hidden behind:
Exception in thread “main” java.lang.UnsatisfiedLinkError: /usr/java/jre1.5.0_12/lib/i386/motif21/libmawt.so: Can’t load IA 32-bit .so on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
…
See also: http://jmatrix.net/dao/case/case.jsp?case=7F000001-1922F46-111799F84E1-C2
Regards,
Toi