Skip to content Skip to sidebar Skip to footer

Gradlew Assemblerelease Fails With Java.lang.classnotfoundexception: Com.sun.tools.javac.util.context

Sidenote - this post is similar (but not identical) to compileReleaseKotlin fails with java.lang.ClassNotFoundException: com.sun.tools.javac.util.Context, but I thought I'd make my

Solution 1:

In my case, this started happening after a Java update. It turns out the JRE was updated but the JDK was not.

Try: install the new JDK update, uninstall old versions, and reopen any shell/ps/cmd sessions/windows. It may be necessary to kill existing Gradle daemons but it should be smart enough not to reuse them. Try your build again!

Post a Comment for "Gradlew Assemblerelease Fails With Java.lang.classnotfoundexception: Com.sun.tools.javac.util.context"