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-1.8.0.121-1.b14.fc25.x86_64/jre/bin/java)
   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



Comments

Popular posts from this blog

Ports to allow for whatsapp call

Manually clean up zimbra zmcat/zmcpustat exploit

Keychron K2 in Linux