I am developping a JavaFx application with IntelliJ Idea, and until today, all worked fine, but now for no reason (maybe i did something wrong without knowing it) whenever i
I had the same exact problem as you do. As some commenters (@sillyfly and @Javaru) pointed out, the problem is with the new Nvidia drivers. Assuming you are on windows, do the following:
This will roll back your Nvidia drivers to the previous version. Hopefully it works now.
Yes the Problem comes from Nvidia drivers. I had the same error and disabling the nvidia gpu from the device manager caused it to be fixed.
So as it was told on the other answers, the problem came form the last Nvidia Driver : 378.49 I re-installed the older version (376.33) and all worked fine again.
In my case i have the Nvidia 960M.
Thanks everyone for your help.
The problem comes with the latest Nvidia Driver version: 378.49, this driver breaks some java.exe execution such as Android application compilations.
I rolled back my Nvidia Driver in Windows 10 to version 376.33 following these steps:
After the reboot java.exe should work as usual.
Hope this helps more people in the same situation, I wasted 2 days looking for solutions going around Gradle, Android and Java re-installations.