How To Fix “Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA”?
Are you having problems with the issue “Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA“? How to fix it? In today’s article, I will provide solutions for you to solve the issues. Please follow the below steps to get the problem resolved now
How did “Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA” occur?
Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA
When you work with JAVA, you may get the issue Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA. Don’t worry, we are here to provide you solutions in order to resolve your problem.
How to fix “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 Intelpj IDEA Error Here If you just Updated then some configuration is auto-updated by IntelpJ IDEA So that Solution, for now, is Just to get back to JDK8. These steps will get you back to JDK8. Click File > Select Project Structure. Then, select Project Settings. This is why you are experiencing this problem. Simply put it back at 8 BOOM! Your error must now be fixed.
Solution 1: Just Change the Project Language Level
This is where you can update your configuration by IntelliJ IDEA. These steps will get you back to JDK8.
- Visit File
- Select Project Structure
- You can find it in the left tree. Just select Project Settings
- Then Select Project
- Take a look at $strongTag6
- IntelliJ IDEA has changed it from 8 to 16. This is why you are currently facing this problem.
- Simply return it to 8
- BOOM! Your error must now be fixed.

Solution 2: Remove the.idea
You can delete the folder.idea and import your project again. This is how I solved the problem.
Final words
The above are useful solutions that can help you fix “Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA” problem, if you can’t solve it well. Please leave a message.