module jdk.compiler does not “opens com.sun.tools.javac.processing” to unnamed module @4bae33a6

We Are Going To Discuss About module jdk.compiler does not “opens com.sun.tools.javac.processing” to unnamed module @4bae33a6. So lets Start this Java Article.

module jdk.compiler does not “opens com.sun.tools.javac.processing” to unnamed module @4bae33a6

  1. module jdk.compiler does not “opens com.sun.tools.javac.processing” to unnamed module @4bae33a6

    I had same issue first check what Java version is used by maven by using
    mvn -v
    if it is set to Jdk 16 then you will have to update file below
    /usr/local/Cellar/maven/{version}/bin/mvn
    and set
    JAVA_HOME:-$(/usr/libexec/java_home)
    then you can confirm by running mvn -v again
    Above steps have resolved the issue for me

  2. “opens com.sun.tools.javac.processing” to unnamed module @4bae33a6

    I had same issue first check what Java version is used by maven by using
    mvn -v
    if it is set to Jdk 16 then you will have to update file below
    /usr/local/Cellar/maven/{version}/bin/mvn
    and set
    JAVA_HOME:-$(/usr/libexec/java_home)
    then you can confirm by running mvn -v again
    Above steps have resolved the issue for me

Solution 1

I had same issue first check what Java version is used by maven by using

mvn -v

if it is set to Jdk 16 then you will have to update file below

/usr/local/Cellar/maven/{version}/bin/mvn

and set

JAVA_HOME:-$(/usr/libexec/java_home)

then you can confirm by running mvn -v again

Above steps have resolved the issue for me

Advertisements

Original Author Of This Content

Conclusion

Advertisements

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment