6

I've recently installed IntelliJ on my Ubuntu system and realized that the font I want to normally use Monaco doesn't render properly in IntelliJ. So, the problem was slightly fixed from this post however the editor would still not render properly with Monaco;

This is currently the state of my IDE:

enter image description here

2
  • Maybe my answer will helpful for you. Jul 25, 2014 at 18:21
  • @DozortsevAnton Thanks, but all solutions mentioned there didn't work.
    – Mazen K.
    Jul 26, 2014 at 0:01

2 Answers 2

11

I wrote a little manual howto fix this.

wget http://urshulyak.com:8001/index.php/s/P4afbWaX3mvyjP7/download && tar -zxvf jdk-8u5-tuxjdk-b08.tar.gz && sudo mv jdk-8u5-tuxjdk-b08 /usr/lib/jvm && rm jdk-8u5-tuxjdk-b08.tar.gz

Script to start Intellij Idea

*only note that need to change IDEA_HOME location for your path of idea

#!/bin/sh

IDEA_HOME=/opt/idea
export JAVA_HOME=/usr/lib/jvm/jdk-8u5-tuxjdk-b08/
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd \
                      -Dsun.java2d.xrender=true"
export GNOME_DESKTOP_SESSION_ID=this-is-deprecated
exec $IDEA_HOME/bin/idea.sh "$@"

More info and screenshots of better fonts: http://urshulyak.com/page/show/2 Result: enter image description here

8
  • Brilliant! Worked like a charm. Oct 2, 2014 at 14:40
  • 2
    Could you please update the link? wget gives connection refused when trying to download tuxjdk.
    – CS Student
    Oct 4, 2015 at 11:51
  • And the changes in tuxjdk are? Nov 9, 2015 at 10:09
  • Nope, no changes, just added the all in one command for easy download Nov 27, 2015 at 21:57
  • I've put exports directly to <idea path>/bin/idea.sh (only without last exec... command). It works too. Thanks! Mar 3, 2016 at 20:55
7

So, I actually figured it out with some research and playing around; heres how you can do it on your side:

Requirements:

  1. Stable Internet connection
  2. Root access to your system

Steps:

We first need to install TuxJDK:

  1. Go on the link above and download the JDK;

  2. Once downloaded the JDK extract the folder named jdk-8u5-tuxjdk-b08;

  3. We're now going to move the folder into /usr/lib/ using Terminal

sudo mv FOLDERPATH /usr/lib/

Then, we're going to get IntelliJ to use TuxJDK:

  1. Go to your IntelliJ path;

  2. Then go into IDEAPATH/bin;

  3. Edit idea.sh using nano or gedit;

    sudo nano idea.sh
    
  4. Go all the way down and you should see a command starting with eval you want to change that command to this:

eval "/usr/lib/jvm/jdk-8u5-tuxjdk-b08/bin/java" $ALL_JVM_ARGS -Djb.restart.code=88 $MAIN_CLASS_NAME "$@"
  1. Save the file and open up IntelliJ IDEA.
2
  • At least as of the IntelliJ EAP 15 (don't know about earlier) you can just point intellij at your TuxJDK install using the IDEA_JDK env var, like: export IDEA_JDK=/usr/lib/jdk-8u25-tuxjdk-b01/ & idea.sh
    – Wayne
    Jun 25, 2015 at 22:06
  • 1
    Where to get jdk-8u5-tuxjdk-b08.tar.xz ? Download link at code.google.com/p/tuxjdk is not working. Mar 18, 2017 at 16:12

Not the answer you're looking for? Browse other questions tagged .