This error is represented either by a warning message while starting the server,
or a "javax.servlet.ServletException: sun/tools/javac/Main"
exception throwed when a JSP page is requested. It is caused by the Jasper compiler
embedded in the Dwarf HTTP Server because it uses the Sun's javac compiler
to compile the JSP servlets. However, the package containing the compiler is
included in the Java 2 Software Development Kit (JSDK) only, and is not part
of the Java 2 Runtime Environment (JRE). Therefore, if you are trying to run
the HTTP server on a computer where only JRE is installed, you may get this
error message.
Workaround:
An alternative way is to use the Jikes compiler instead of the default Sun's compiler. This is covered in details by the Configuration Guide.
Note: if you are not going to use JSP in your web applications, neither
JDK or tools.jar is required for running the HTTP server.
Return to the main page.