I have been having trouble with getting blank Windows with my Java programs. The problem first appeared in programs I was working on in Eclipse, but then I found other programs I had downloaded from SourceForge also had the same problem. Apparently, the problem comes from a conflict with Compiz-Fusion and Java.
Here is the solution:
Add the following line to /etc/environment –
You possibly need to reboot for this change to take effect.
When I did this I got this error:
java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386
The problem appears to be caused by using OpenJDK. The solution was to use Sun’s JDK. This post will not go into detail about how to switch, but here are some things to consider:
- Install Sun’s JDK with Add/Remove Programs, apt-get, etc.
- Use update-alternatives to point the OS to the correct Java Home
- Run java -version to check that the correct version is in use
- Update the installed JVMs in the Eclipse preferences to make sure that Eclipse is lauching programs with the correct JVM