1

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.

1 Answer 1

1

Modules were introduced in Java 9, so I would not be surprised if a Java 8 JVM is scared to death.

See also https://en.wikipedia.org/wiki/Java_Platform_Module_System

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.