Oct 10, 2018

How to fix netbeans in Linux: Can`t initialize UI Running in headless mode

It seems to be the pre-installed openjdk issue. You need to replace it with Java jdk from Oracle.

See also:
How to Install Oracle Java to Linux