Setting the Compiler for a Servlet File
When you change the default compiler for servlet files, the change affects all
servlets for which you have not specifically assigned a compiler type. Setting
a compiler type for an individual servlet overrides the default compiler setting.
To set the compiler for a servlet file:
- In the Filesystems window, right-click the servlet and choose Properties
from the contextual menu.
- In the Properties window, click the value field of the Servlet Compiler
property to activate the combo box. Choose a compiler type.
- When you have completed your changes, close the property sheet.
Compiler options include:
- RMI Stub Compiler. This option is not a valid compiler type for servlets.
- External Compilation. The javac compiler runs in a virtual
machine outside the IDE.
- Internal Compilation. The javac compiler that runs within
the same virtual machine as the IDE. javac is a cross-platform compiler.
The advantages of running javac internally are speed, the changes
in the class structure that appear immediately in the Filesystems window,
and the status bar, which provides information on the dependent classes that
are compiled.
- Indirect Ant Compilation. This option is not a valid compiler type
for servlets.
- Ant Script Compilation. This option is not a valid compiler type
for servlets.
- Do Not Compile.
Legal Notices