Fix ugly java applications font in Linux

Add this to ~/.bashrc:

export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd'

Select openjdk for default java:

alternatives --config java

  Selection    Command
*+ 1           java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-
   2           /usr/java/jdk1.8.0_112/jre/bin/java
   3           /usr/java/latest/jre/bin/java

Enter to keep the current selection[+], or type selection number: 1

Relogin your session, and launch the java app

For netbeans to use openjdk, change launch command to:

netbeans --jdkhome /usr/lib/jvm/java-1.8.0


Popular posts from this blog

Tips Jika Mobil Anda Habis Bensin LOL!

Setting open office u label tom & jerry