* Compile the java file.
*/
public void generateNative()
throws NativeCompilationException, NativeLinkException
{
Library libjsp = new Library();
libjsp.setOutputFile( jspclass.getNativeFileName() );
libjsp.setOutputDir(ctxt.getRoot()+"/WEB-INF/rws/jsplib");
libjsp.setSource(libjsp.JAVA_SOURCE);
Vector vec = new Vector();
vec.addElement(javaFileName);
libjsp.setInputFiles(vec);
libjsp.addCompileOption("-I"+ctxt.getRoot()+"/WEB-INF/rws/src");
// check for libservlets.so
//java.io.File f1 = new java.io.File(ctxt.getRoot()+"/WEB-INF/rws/lib/libservlets.so");
//if (f1.exists())
//{
// System.out.println("JspC, libservlets.so exists");
// libjsp.addLinkOption("-L"+ctxt.getRoot()+"/WEB-INF/rws/lib");
// libjsp.addLinkOption("-lservlets");
//}
libjsp.compile();
}