Launch javaFx application with Intellij failed - java

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

thx for your replies.
6 months of searching alone. A coworker come to ask a question. 10 min of searching and we found it.
In Intellij launcher. I had uncheck the "include parent environment variables" in the "Environment variables" window. I can't remember why. I check again and it works.

Related

Netbeans 12.0 Java hints and highlights not working

Suddenly the hints and highlights on Netbeans stopped working for me. It won't show suggestions on imports and it won't highlights errors. I intentionally wrote int i = "hello":and the code wasn't highlighted and no warnings came up. I've checked >Preferences >Editor and form what I can tell Code Completion, Code Templates, Hints and Highligthing are all selected. I checked some older posts here and also tried to delete the index in the caches folder. I've discarded my project and started over, uninstalled and installed Netbeans and restarted my laptop at few times now but the issue is still there. It was working fine until yesterday afternoon. Any suggestions? I run Netbeans on macOS Catalina if that matters.
EDIT**
I now noticed this problem only occurs in projects where I have a JForm.
I had the same problem and here how I solved it:
Exit Netbeans
Go to : C:\Users\UserName\AppData\Local\NetBeans =====> DELETE Cache folder
Open Netbeans and it's fixed

Netbeans 11.3 - all projects are broken

I have downloaded NetBeans and Java 13 for Windows OS, 3 days ago (just started learning coding so very new to this) and it worked fine for 2 days but today all the projects i've created are now broken. When I go to start a new project, it says feature is not yet enabled but when i click through to activate it,i get a message saying "Not all requested modules can be enabled."
Error message when i try to open a new project
I've checked online for fixes and done the checking/changing of location in the netbeans.conf file, I uninstalled and re-installed both Netbeans and Java 13, also tried to install Java 8 to try with a previous version and it still doesn't work.
Does anyone have any ideas of what else could be the problem? i have been trying to fix this for hours so any help would be great!!

The import Javafx cannot be resolved Eclipse JDK-11.0.1

Using eclipse on windows I've begun to get error messages on Java files containing Javafx imports. Although this was never an issue before. I've tried changing the build path and ensuring I have the latest version of Java (JDK-11.0.1). Javafx is also downloaded from the Eclipse marketplace and was previously working. It appears in the preferences window also. Any help would be much appreciated I have an exam in the morning, meaning this was an awful time for the software to stop working.

How to work with NetBeans IDE 8.2 on Windows 7 64-bit with JDK

I've been having trouble using NetBeans IDE 8.2 with JDK on Windows 7 64-bit. NetBeans can compile code, but doesn't run it. I've downloaded all of the necessary files and programs and even consulted with a computer programming teacher, but I haven't been able to work around this issue. The URL displays an image that shows what I get back after attempting to run a code.
https://i.stack.imgur.com/RsEvx.png
I appreciate any help I can get.
Thanks,
--Sam
JavaApplication1.java is still set as your main class.
To change your main class, go into Project Properties -> Run and change "Main Class" to TestClass.java.
Essentially, the compiler is still running whatever main function is found in JavaApplication1.java.
#notyou Also mentioned how you can right click a file and run it directly, instead of changing the project settings. I used to use this but it slipped me! This is super useful.
I'm pretty sure this question has some answers for you.

IntelliJ IDEA 2017.2.5 Cannot open

I started learning Java a week ago when I bought my Java book. I had IntelliJ IDEA before because I was playing with Java.
Now, I bought my Java book (5 days ago) and my IntelliJ just didn't work. I get an error file on my desktop and I really don't know what to do.
What happens actually:
I double click on intellij (no admin perms) it just opens in task manager for 10-20 seconds, then its gone.
I right click on intellij and run it as admin, but the same thing happens.
Error: https://hastebin.com/qigamixete.tex
This seems still an open and non-reproducable issue. I suggest you to update your JDK and graphics card. This might help you.
Failed to write core dump. minidumps are not enabled by default on client version of windows
https://bugs.openjdk.java.net/browse/JDK-8182156
https://bugs.openjdk.java.net/browse/JDK-8179382

Categories