Compiz+Java: NO PROBLEM!
Posted by thio4linux on October 11, 2007
the real way to solve the problem of compiz with java!
i think that there’s a lot of people with my problem… i’ve found the solution:
open this file:
sudo gedit /etc/rc.local
insert on the bottom of the file but before exit 0 this line:
export AWT_TOOLKIT=MToolkit
now you must have something like this:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will “exit 0″ on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
export AWT_TOOLKIT=MToolkit
exit 0
then restart your distro…….
if you still have some problems type in your terminal: export AWT_TOOLKIT=MToolkit before opening your java apps………… that’s all folks!!! have fun

Martin said
That *NOT* the real and good way to fix the problem.
Ex.: This might help a java application, let say Netbeans;
But the apps you would develop and ran under that IDE won’t see the MToolkit flag.
thio4linux said
are you sure that the apps won’t see the MToolkit flag???
this is the only way i’ve found to go over this problem… now with Gutsy there’s no problem but in Feisty wasn’t the same…