Advertisement

12.25.2007 at 05:49AM PST, ID: 23042276
[x]
Attachment Details

java.lang.UnsupportedClassVersionError: Bad version number in .class file

Asked by ExecQ in Java Servlets, Java Server Pages (JSP)

Tags: bad, file

I am new to learning Java servlets.  I received this error message after downloading Tomcat 5.5 and Java jre1.5.

The error message indicates that a bad version number was created in the .class file.  The .class file was created after compling a java file that I created from a new book I read.  It would seem that I have a old version of java, meaning jre1.5, that is no longer supported.  There are newer version of the jre, but I used the one the book instructed, disregarding any possible compatibility issues.  From my understanding, the newer version of the jre is 6.0, so 5.0 isn't really that old, like say a jre 4.0. The java file doesn't specify what version of java is to be used.

Any ideas as to what might be causing this problem? Start Free Trial
[+][-]12.25.2007 at 07:36PM PST, ID: 20528283

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Servlets, Java Server Pages (JSP)
Tags: bad, file
Sign Up Now!
Solution Provided By: cmalakar
Participating Experts: 1
Solution Grade: A
 
 
[+][-]12.26.2007 at 02:05PM PST, ID: 20531173

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628