Try using jspc with the -compile flag and see what happens. Your code is probably not setting something (I don't know what), which is causing it to not compile.
As an aside, I don't use the -compile flag to compile. I use the jspc script to create the .java files and then I use Jikes to compile. It's much much faster than javac. Subir -----Original Message----- From: Dmitry Beransky [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:50 AM To: Tomcat Users List Subject: RE: Jasper2's JspC At 10:42 AM 8/13/2003, Subir Sengupta wrote: >Use the -compile argument. >At 10:42 AM 8/13/2003, Steph Richardson wrote: >Otherwise, JspC will not create .class files for you, but the java >files >that JspC creates can just be compiled with javac, using >Tomcat's classpath Here's the thing. Setting -compile flag forces JspC to call Compiler.compile(). I'm already making this call (I'm actually bypassing JspC, setting all the options and contexts myself and calling Compiler.compile() directly). Compiler.compile() makes a call to generateClass() which in turn invokes Ant's javac task to compile the file. The task completes with no errors or exceptions; I'm stepping through the execution in a debugger and I can see that 'success' flag is set to true upon the javac's completion. Yet there is no .class file to be found anywhere. Dmitry -----Original Message----- >I'm having partial luck manually invoking JspC and compiling JSP pages >on demand. I get as far as precomiling to .java, but for the world of >me can't figure out how to get the java class compiled to bytecode. >Looking at the source code for org.apache.jasper.compiler.Compiler, it >appears that I should be getting a .class as well, but I'm not. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
