–add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED In Java Intellij IDEA”?

[ad_1]

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

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.

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.

  1. Visit File
  2. Select Project Structure
  3. You can find it in the left tree. Just select Project Settings
  4. Then Select Project
  5. Take a look at $strongTag6
  6. IntelliJ IDEA has changed it from 8 to 16. This is why you are currently facing this problem.
  7. Simply return it to 8
  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.

[ad_2]

Source link