Bad class file, wrong version

S

Steven

Hi All,

When trying to uses a class I get this message :

-----------------------------------------------------------
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
errorMap.put(MyForm.ERR_EMAIL_ENTER, "Please enter an email
address");
-----------------------------------------------------------
This message I get when I run the JSP page in the directory /webapps/ROOT

But when I run this in the directory /webapps/examples it works fine!

Any idea what's wrong?

Thanks.
 
S

Steven

Hi,

Thanks!

Yep you where right.
I compiled using 1.5 after compiling with 1.4.2 it worked perfectly.

Steven.
 
T

Tor Iver Wilhelmsen

Steven said:
This message I get when I run the JSP page in the directory /webapps/ROOT

But when I run this in the directory /webapps/examples it works fine!

Any idea what's wrong?

The only explanation is that in the first case it uses a pre-1.5.x
JVM, and in the latter case it uses 1.5.x.

Are you sure they are running in the same container?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,274
Latest member
JessMcMast

Latest Threads

Top