How To Solve Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA Error ?

Thomas Peters
Jan 17, 2022
  1. Go to File
  2. Seelect Project Structure
  3. There Is in left tree Just choose Project Settings
  4. Then Select Project
  5. There look at Project language level
  6. IntelliJ IDEA had changed it from 8 To 16. Thats why you are facing this issue.
  7. Just put it back to 8
  8. BOOM! Now your error must be solved.

--

--