Hello Jean-Claude,

I don't use the Eclipse IDE. I do all my developments with the NetBeans IDE.
But anyway, the IDE does not matter since Tomcat is running separately in an productive environment under Linux with Apache, mod_jk and Java 1.5_02


Tomcat 5.5 just uses Eclipse JDT compiler classes to compile JSPs. But it should be possible to change the config, so that Tomcat uses another compiler. At least, the releasenotes say so.
But there is no useful howto at the tomcat web site or anywhere else. (at least I didn't find one)


The problem is:
1. Tomcat 5.5 (without compatibility packages) runs only with Java 1.5 (JRE!)
2. The built in Java compiler to compile JSPs (and only JSPs) is the Eclipse JDT Compiler !!! JAVA 1.4 !!!


==> So Servlets using Java 1.5 features are runnig without problems because they are already compiled
==> JSPs with Java 1.5 features cannot be compiled (within tomcat) because the tomcat built-in compiler only knows Java 1.4


Stefan

Serlet Jean-Claude schrieb:

Hello

Lutz is right : you may define your JRE under Eclipse
Under (sorry for my mistakes : i use a french version and try to translate
in english) Window -> Preferences -> Installed JRE you may use an other JRE
that the one installed under Eclipse
Hope this will help you

Jean-Claude

-----Message d'origine-----
De : Stefan Parnet [mailto:[EMAIL PROTECTED]
Envoy� : mercredi 27 avril 2005 16:14
� : Tomcat Users List
Objet : Re: Howto configure tomcat to compile JSPs with Sun JDK 1.5




Lutz Zetzsche schrieb:



Hi Stefan,

Am Mittwoch, 27. April 2005 15:20 schrieb Stefan Parnet:




Hello,

I installed Tomcat 5.5.9 and want to use Java 1.5 in my JSPs. Since
Tomcat 5.5 uses the Eclipse JDT Compiler (Java 1.4), it cannot
compile my JSPs.
So I want the tomcat to compile the JSP's with the Sun JDK 1.5
compiler. I searched the web, but I did not find any instructions how
to configure the tomcat to do so.

Can anyone help me?




Do you integrate the Tomcat 5.5.9 into your Eclipse IDE or do you run it seperately?

If you run Tomcat integrated into Eclipse, perhaps you can tell Eclipse which installed Tomcat and which installed JDK to use for your project. This is the way, I can do it with NetBeans IDE.

Else, if you run Tomcat independently of the IDE, you must only set the environment variable for the JDK correctly before starting the server. I am running Tomcat 5.5.7 with JDK 1.5.0_02 and have to set the environment variable JRE_HOME so that Tomcat uses the right one of the installed JDKs. I set the JRE_HOME manually before starting Tomcat:

        export JRE_HOME=/usr/java/jre1.5.0_02/
        (you must change the path to the path you use on your system)

The environment variable JAVA_HOME could also play a role, although not in my case. :-)

I hope, this information does help a little.


Best wishes

Lutz




****************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on
it, is prohibited.
E-mail messages are not necessarily secure.  Renesas does not accept
responsibility for any changes made to this message after it was sent.
Please note that this email message has been swept by Renesas for
the presence of computer viruses.
****************************************************************************


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to