I have a problem for several months now.
I have a big application in Java 1.7 and Java FX on centos 6. When I'm launching with idea Intellij CE 2017.1.1, I have this exception with a JDK 7 :
Failed in XOpenDisplay
(java:181803): Gtk-WARNING**: cannot open display:
With JDK 8 :
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Unable to open DISPLAY
at com.sun.glass.ui.gtk.GtkApplication.<init>(GtkApplication.java:68)
At the beginning, it worked with Intellij. But one day, it failed with this exception and I can't find why. I recreated my workspace several time without success. It works with Eclipse with the same code. It works if I copy the CLI displayed in the "run window" at the beginning of the running program in IntelliJ in a console.
Now, I have an instance of eclipse to run the application and I'm writing the code in IntelliJ. But I would like use only IntelliJ.
Thx for your help
DidierC