Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
BlueDragon Self-Help: FAQ
Back to Search >  Back to Search Results

Faq ID 28
Product ServletExec
Category JSP
Question I want to use a compiler other than the default javac compiler from Sun for compiling my JSP pages. How do I do that with ServletExec 3.0 or greater?
Answer Pass the JSP10Servlet 2 init parameters, one named compiler whose value is the path to the compiler you want to use, and one named compileCommand which is used to give the compiler any extra arguments it may need such as classpath, verbose, etc...

For example to get the example JSP hangman.jsp working with IBMs Jikes compiler on a windows machine you would configure JSP10Servlet to take the following init parameters:

compiler = D:\ibmJikes\jikes
compileCommand = -classpath 'D:\jdk1.2.2\jre\lib\rt.jar;D:\Program Files\New Atlanta\ServletExec ISAPI\lib\servlet.jar;D:\Program Files\New Atlanta\ServletExec ISAPI\lib\ServletExecXX.jar;D:\Program Files\New Atlanta\ServletExec ISAPI\Examples'

To use Microsoft's jvc compiler you would use:

compiler = D:\Program Files\Microsoft SDK for Java 4.0\Bin\jvc
compileCommand = /cp 'D:\jdk1.2.2\jre\lib\rt.jar;D:\Program Files\New Atlanta\ServletExec ISAPI\lib\servlet.jar;D:\Program Files\New Atlanta\ServletExec ISAPI\lib\ServletExecXX.jar;D:\Program Files\New Atlanta\ServletExec ISAPI\Examples'

NOTE: The value of ServletExecXX.jar will depend upon which version of ServletExec you are using. For example, with ServletExec version 3.1 the value would be ServletExec31.jar.

NOTE: You must also include all necessary classes in the classpath option that's passed to the alternate Java Compiler via the compileCommand init argument of JSP10Servlet.



   
company media information terms of use privacy policy contact us