tomcat seems to use a 1.3-compiler with the 1.4-runtime classes. with jdk1.4 the version of the generated classes has changed from 47.0 to 48.0 (i guess due to the "assert" keyword). make sure your JAVA_HOME environment variable points to the new jdk.

sven

Joe Latty wrote:
Has anyone come up against this error whilst trying to compile a jsp:

Generated servlet error:
bad class file: C:\j2sdk1.4.1\jre\lib\rt.jar(java/lang/Object.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.

I am running j2sdk1.4.1, with Tomcat 4.1.12 and struts 1.1b3 ( I just
upgraded my jdk from 1.3).

All had been running well until I upgraded my jdk.


Thanks for any help.

Joe


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

Reply via email to