|Re: Fatal error when mixing SWT and Swing on Solaris Sparc [message #902211 is a reply to message #900938]
||Thu, 16 August 2012 07:50
| Milan Vahala
Registered: October 2011
This problem can occur on all Solaris systems, not just on Solaris Sparc.
The reason why the crash happen is there are two different Xrender libraries on the system.
One is in located in /usr/sfw/lib/libXrender.so.1 and another in /usr/lib/libXrender.so.1.
Theese libraries are different files, so one is not symbolic link to other.
SWT seems to be using /usr/sfw/lib/libXrender.so.1 and SWING is trying to use /usr/lib/libXrender.so.1, so the libraries somehow collides which results in crash.
My solution was to remove(actually rename) the /usr/lib/libXrender.so.1 and replace it with symbolic link to /usr/sfw/lib/libXrender.so.1. This can be done running following commands as root:
mv /usr/lib/libXrender.so.1 /usr/lib/libXrender.so.1.renamed
ln -s /usr/sfw/lib/libXrender.so.1 /usr/lib/libXrender.so.1
Powered by FUDForum
. Page generated in 0.01723 seconds