Hello Guys, How are you all? Hope You all Are Fine. I just Newly Installed IntelliJ IDEA But When I am run my main class I am facing following error Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED in java. 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 Error Occurs ?
I just Newly Installed IntelliJ IDEA But When I am run my main class I am facing the following error.
Abnormal build process termination: /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs=\"\" -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djdt.compiler.useSingleThread=true -Daether.connector.resumeDownloads=false -Dio.netty.initialSeedUniquifier=-5972351880001011455 -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US -Didea.paths.selector=IntelliJIdea2021.2 -Didea.home.path=/home/pm/idea-IU-212.4746.92 -Didea.config.path=/home/pm/.config/JetBrains/IntelliJIdea2021.2 -Didea.plugins.path=/home/pm/.local/share/JetBrains/IntelliJIdea2021.2 -Djps.log.dir=/home/pm/.cache/JetBrains/IntelliJIdea2021.2/log/build-log -Djps.fallback.jdk.home=/home/pm/idea-IU-212.4746.92/jbr -Djps.fallback.jdk.version=11.0.11 -Dio.netty.noUnsafe=true -Djava.io.tmpdir=/home/pm/.cache/JetBrains/IntelliJIdea2021.2/compile-server/rfg-survey-api_cc70fc05/_temp_ -Djps.backward.ref.index.builder=true -Djps.track.ap.dependencies=false --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
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 Error ?
How To Solve Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED Error?
To Solve Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED Here After the new update release of IntelliJ IDEA, Some Config is changed that’s why This error occurs. Just go back to JDK8. Here is How. Go to file. Select Project Structure. Choose Project Settings then Select Project There You can see Project language level Just put it back to 8. Project language level is changed in new update of InteliJ update thats why This error Occurs Now just try to run your Code.
Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
To Solve Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED Here After the new update release of IntelliJ IDEA, Some Config is changed that’s why This error occurs. Just go back to JDK8. Here is How. Go to file. Select Project Structure. Choose Project Settings then Select Project There You can see Project language level Just put it back to 8. Project language level is changed in new update of InteliJ update thats why This error Occurs Now just try to run your Code.
Solution 1: Just Go back to JDK8
Here After the new update release of IntelliJ IDEA, Some Config is changed that’s why This error occurs. Just go back to JDK8. Here is How.
- Go to file.
- Select Project Structure.
- Choose Project Settings then Select Project
- There You can see Project language level
- Just put it back to 8.
- Project language level is changed in new update of InteliJ update thats why This error Occurs
- Now just try to run your Code.

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