Wednesday, July 14, 2010

Netbeans 6.8 (or AWT/Swing based applications) shows font conversion errors

The applications which are based on Java Swing or AWT such as Netbeans (specially 6.8) , They show some weird font conversion errors and displays awful fonts in linux environments.

This problem is associated with Java fonts and can be easily corrected by setting JAVA_HOME pointing to j2SDK 6.0 .

e.g.  export JAVA_HOME="/usr/lib/jvm/java-6-sun"

This simple change can solve the font rendering issue.

No comments:

Post a Comment