Linux, Ubuntu

Java Window blank or not rendering correctly when running under XGL/Compiz

I’m running Ubuntu with an XGL session and Compiz, and tried installing ArgoUML a java based cross platform UML designer. However when the application was run, the main window did not render correctly, it was blank with no menus or content.

A friend informed me of the solution, which affects Netbeans IDE as well, so the following:


sudo gedit /etc/environment

Add the following line

AWT_TOOLKIT="MToolkit"

save and close.

You may need to restart the session or reboot to pick up the environment setting change.