close

[Solved] Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA

Hello Guys, How are you all? Hope You all Are Fine. Today I am runing my project But facingfollowing error Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java IntelliJ IDEA. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

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

Today I am runing my project But facingfollowing error .

Unrecognized option: --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

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

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

    To Solve Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA Error Here If you just Updated then some configuration is auto-updated by IntelliJ IDEA So that Solution, for now, is Just to get back to JDK8. Follow these steps to get back to JDK8. Go to File Seelect Project Structure There Is in left tree Just choose Project Settings Then Select Project There look at Project language level IntelliJ IDEA had changed it from 8 To 16. Thats why you are facing this issue. Just put it back to 8 BOOM! Now your error must be solved.

  2. Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA

    To Solve Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA Error Here If you just Updated then some configuration is auto-updated by IntelliJ IDEA So that Solution, for now, is Just to get back to JDK8. Follow these steps to get back to JDK8. Go to File Seelect Project Structure There Is in left tree Just choose Project Settings Then Select Project There look at Project language level IntelliJ IDEA had changed it from 8 To 16. Thats why you are facing this issue. Just put it back to 8 BOOM! Now your error must be solved.

Solution 1: Just Change Project language level

Here If you just Updated then some configuration is auto-updated by IntelliJ IDEA So that Solution, for now, is Just to get back to JDK8. Follow these steps to get back to JDK8.

  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.

Solution 2: delete the .idea

Just delete the .idea folder and reimport your project again. Here is How I solved my issue.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also Read

2 thoughts on “[Solved] Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA”

Leave a Comment