You can choose which compiler to use for compiling the servlet into a class.
To select a compiler for the JSP:
In the file's property sheet, select the Execution tab, select the Servlet Compiler property, press the drop-down arrow that appears, and choose the compiler from the combo box.