I am experiencing build failure when trying to compile and execute Java programs using JDK 8 (1.8.0_432). I keep getting the following error from IntelliJ idea:
java: invalid flag: --add-modules
Not sure why this is happening.
Can confirm that JAVA_HOME & PATH is correctly set to Java 8 directory.