Klaas,

> I wrote a class around the javac from IBM,...

Is this "javac from IBM" freely redistributable?  I believe the "javac" that
comes with Sun's JDK is not.  That is the main reason for substituting
javac with Jikes for many of us.

And, if you do not plan to redistribute your application, why not use
tools.jar?

Also, do you plan to post your solution in "how to - step by step" form
so that users who encounter the same problem on AIX would benefit?

Thanks,

Gautam

-----Original Message-----
From: Klaas van der Ploeg [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 3:11 AM
To: [EMAIL PROTECTED]
Subject: RE: Compile JSP with Tomcat/IBM JDK 1.2.2/AIX4.3.3

Hi,

I did not mean Jikes because I already have a javac (which comes with the
JDK), and I don't want to compile Jikes from source for the AIX platform.
But your directions pointed me in the right way:

I wrote a class around the javac from IBM, basically it's a copy of
JikesJavaCompiler, but with some modified command line parameters. I added
this class to my WAR, and modified application/web-inf/web.xml and added
jspCompilerPlugin and jspCompilerPath. And that works fine.

So, basically thanks for your suggestions, but I did it a bit different.
(And at least easier for AIX....)

Rgrds,
Klaas

> -----Original Message-----
> From: Gautam Sinha [mailto:[EMAIL PROTECTED]]
> Sent: donderdag 2 augustus 2001 16:11
> To: [EMAIL PROTECTED]
> Subject: RE: Compile JSP with Tomcat/IBM JDK 1.2.2/AIX4.3.3
>
>
> I assume you mean the Jikes compiler when you say "IBM's
> javac" compiler.
> Since you did not know the name of "IBM's javac", you
> probably could not
> perform an effective search of the tomcat user archives.
>
> I posted a solution to your problem recently.
> It is available in the tomcat-user archives at
> http://mikal.org/interests/java/tomcat/archive/view?mesg=35715
>
> You may replace Step 2 with the <init-param> tag as suggested
> by Chris Brown in his follow-up posting.  He also points out certain
> issues that are worth knowing.
>
> http://mikal.org/interests/java/tomcat/archive/view?mesg=35737
>
> I have not tested the steps on the AIX platform, but they are tested
> on the Windows platform.
>
> Gautam
>
> -----Original Message-----
> From: Klaas van der Ploeg [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 02, 2001 1:35 AM
> To: [EMAIL PROTECTED]
> Subject: Compile JSP with Tomcat/IBM JDK 1.2.2/AIX4.3.3
>
> Hi All,
>
> I managed to install Tomcat 3.2.3 on AIX with IBM's JDK 1.2.2. I also
> deployed my application on it using a .war file. But, when I
> request a jsp
> page, I get an exception "sun.tools.javac.Main" etc....
>
> Of course, this is related to the fact that I'm not using sun's jdk.
>
> My question:
> - Can I configure Tomcat to use IBM's javac for compiling jsp's?
> - Can I use conf/web.xml (<jspCompilerPlugin>) to specify the
> classname (I
> read that these directives are not working, is that correct?)?
> - What is the classname of the IBM javac compiler?
>
> Thanx for your help.
>
> Klaas
>

Reply via email to