WLS 6.0.0 - "java.io.IOException: javac: not found" error when dynamically deploying JSPs

(Doc ID 767665.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version: 6.1 to 6.1]
Information in this document applies to any platform.
Information in this document applies to any platform

Goal

The following message may appear when trying to dynamically deploy a JSP in WLS 6.0.0:

Full compiler error(s):

        java.io.IOException: javac: not found
                at java.lang.UNIXProcess.forkAndExec(Native Method)
                at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
                at java.lang.Runtime.execInternal(Native Method)
                at java.lang.Runtime.exec(Runtime.java:551)
                at java.lang.Runtime.exec(Runtime.java:447)
                at java.lang.Runtime.exec(Runtime.java:443)
                at weblogic.utils.Executable.exec(Executable.java:144)
                at weblogic.utils.Executable.exec(Executable.java:108)
                at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java...)
                at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:354)
                at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:370)
                at weblogic.jsp.JspStub.prepareServlet(JspStub.java:180);
                at weblogic.jsp.JspStub.prepareServlet(JspStub.java:148)
                at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:....)
                at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java....)
                at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletC.....)
                at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java....)
                at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
                at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms