JRun 3.1: Documentation discrepancy concerning JSPC
Macromedia has identified three documentation inaccuracies concerning the JSPC off-line compiler for JRun 3.1. In each case, actual behavior is slightly different from the documented description.
- The JRun 3.1 documentation for JSPC displays a usage of:
java [-classpath classpath] JSPC [-compiler "compiler_spec"] JSP_path
to specify the compiler to be used for the off-line JSP compilation operation. However, using the-compilerswitch results in the following exception:
java.io.IOException: CreateProcess: ompiler error=2 java.io.IOException: CreateProcess: ompiler error=2 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.<init>(Win32Process.java:61)
The correct switch to pass to JSPC is either-cor--compiler, as displayed when invoking the JSPC-helpcommand line option. Either of these options allows you to select the compiler without throwing errors. - The JSPC documentation also states:
compiler - (Optional)Specifies a quoted string containing the compiler and compiler settings to use for the compile. If you omit this parameter, JRun compiles JSPs in-process using the Sun javac compiler.
However, if you omit the-cparameter and add the-g(debug) parameter, you will notice that the setting for "jsp.jikes.compiler" in the global.properties file will actually take effect, rather than defaulting to "javac". This only happens when using the-gcommand option. - Compiling a JSP with the
-gparameter also generates an additional XML file. This is not explicitly documented, but this is correct behavior. The-gparameter may be used to provide additional debugging information.
During the compilation process, JRun creates an interim XML file that may be saved and examined by specifying the-gswitch.
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
