I recently downloaded JDK 1.8.0.0_06 that comes bundled with NetBeans. I then got to find out that my JavaFx project, that I have been developing in Java 1.7 won\'t compile in J
Just do this. Then invalidate IntelliJ caches (File -> Invalidate Caches
)
I got the same issue in IntelliJ IDEA Community with Maven and I had to reimport the project by right-clicking the project in the Project tab -> Maven -> Reimport
Edit your env var for JAVA_HOME
to point to the new installed JDK 1.8:
R-click on My Computer -> Properties -> Advanced System Settings -> Environment Variables
find JAVA_HOME
on the list and set it's value to something like that:
C:\Program Files\Java\jdk1.8.0_31
Find the old version and edit it in PATH
variable aswell.
Should be done.