Saturday, August 8, 2015

Font fix for openjdk in Ubuntu (Intellij IDEA needs this especially)

Install openjdk-8 from this link.

To fix Intellij, do the following:

Edit idea64.vmoptions

For me this file is in /home/kaiyin/opt/ideac/bin/idea64.vmoptions, add the following lines.


It might be even better to put these options in ~/.profile ~/.bashrc etc:

# make sure intellij uses openjdk
export IDEA_JDK="/usr/lib/jvm/java-8-openjdk-amd64"
export _JAVA_OPTIONS="-Dswing.aatext=true -Dawt.useSystemAAFontSettings=lcd  -Dsun.java2d.xrender=true -Xms1g -Xmx75g"