java.lang.NoClassDefFoundError: sun/tools/javac/Main

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

Solutions on the web

via Coderanch by Raja Islam, 11 months ago
sun/tools/javac/Main
via Google Groups by Timothy G., 2 years ago
sun/tools/javac/Main
via Oracle Community by 843840, 1 year ago
via tomcat-users by tom, 1 year ago
sun/tools/javac/Main
via Oracle Community by 843833, 1 year ago
via Oracle Community by 843840, 1 year ago
sun/tools/javac/Main
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:240)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:448)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:419)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:151)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:163)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:307)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at java.lang.Thread.run(Thread.java:498)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

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