I'm having problems with Netbeans (programming IDE, written using Swing) on CentOS 7.4. It worked fine on 7.2 but we upgraded some kernel modules.

Since then some of the fonts within my Netbeans have become problematic:

enter image description here

I have Google'd around and found people suggesting to add this to my Netbeans config file, netbeans_default_options:

-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=on

but that hasn't solved the problem.

Could someone help suggest a fix?

  • 1
    Have you tried changing the theme to Metal?
    – catemperor
    May 5, 2018 at 22:12

2 Answers 2


This is an Issue of an Incompatibility of the Java Engine which is shipped with Netbeans with the Host Machine.

I fixed this by installing the OpenJDK Package from the Repository and configuring Netbeans to use the Local Java Engine in netbeans.conf with the Variable netbeans_jdkhome.

# pwd
# vi netbeans.conf
#Commenting shipped Java Engine

The only Inconvenience is that this Procedure must be repeated on every Netbeans Update.


Run this to launch NetBeans:

/netbeans/dir/bin/netbeans --laf Metal

Basically runs the metal look and feel theme

You must log in to answer this question.

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