java.lang.ClassNotFoundException: unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via heapoverflow.me by Unknown author, 1 year ago
unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
via gradle.org by Unknown author, 1 year ago
unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
via Coderanch by Maharaj thak, 10 months ago
unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
via coderanch.com by Unknown author, 2 years ago
unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
via Stack Overflow by kiran reddy
, 1 year ago
unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
via GitHub by lach015
, 1 year ago
unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
java.lang.ClassNotFoundException: unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
at org.codehaus.groovy.tools.javac.JavacJavaCompiler.findJavac(JavacJavaCompiler.java:190)
at org.codehaus.groovy.tools.javac.JavacJavaCompiler.compile(JavacJavaCompiler.java:49)
at org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.gotoPhase(JavaAwareCompilationUnit.java:102)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:548)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:517)
at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:59)
at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:215)
at org.codehaus.groovy.ant.Groovyc.runCompiler(Groovyc.java:1161)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.