tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pixel <pi...@pixelfreak.net>
Subject Re: JSP compile error when switching JDK to 1.4.0
Date Wed, 17 Apr 2002 01:40:25 GMT
Todd,

The tools.jar file in the /lib directory of your Tomcat install needs to 
be replaced with the tools.jar file from your 1.4.0 JDK.

~Scott

Ganey, Todd wrote:

>I know this has been posted before, but I either missed or there was no
>solution posted on how to correct the JSP compile error when you switch JDKs
>from (in my case) 1.3.02 to 1.4.0 in Jakarta TC 4.0.3 on a Windows 2000 or
>ME machine.
>
>after installing the new JDK, pointing references to the new JDK, and after
>removing (or not removing) the old JDK, starting Tomcat and then trying to
>access a JSP page (ex. the examples)
>
>I get this exception (only the first line shown) :
>
>org.apache.jasper.JasperException: Unable to compile class for JSPerror:
>Invalid class file format in
>C:\J2SDK1.4.0\JRE\lib\rt.jar(java/lang/Object.class).  The major.minor
>version '48.0' is too recent for this tool to understand.
>
>Now I have hunted the registry and done some searches through contents of
>the Tomcat files thinking something still needed to be switched over, but I
>have been unable to find the smoking gun.  As of right now the only way I
>have found to fix this problem is to reinstall Tomcat (the typical Windows
>thing to do and very easy, thanks for a good installer), but I would prefer
>to know what is causing this and how I could fix it without a reinstall.
>
>Thank you,
>
>Todd Ganey
>
>
>--
>To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>
>
>




--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message