Meaningless Drivel is fun!
The moose likes Tomcat and the fly likes Bad version number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Bad version number " Watch "Bad version number " New topic

Bad version number

subodh gupta
Ranch Hand

Joined: Jul 23, 2007
Posts: 203
Hi Ranchers,

I am getting below error

as per my knowledge this error comes when you use different jdk but i am using same jdk in both the places even them i am getting this error.
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Normally that's because you compiled your code with the higher JVM and you ran it using the lower JVM.

SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
subodh gupta
Ranch Hand

Joined: Jul 23, 2007
Posts: 203
i know that, but i have already checked i am using the same jdk at both places (i.e. eclipse and JAVA_HOME (used by tomcat))
[ January 31, 2008: Message edited by: subodh gupta ]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Well, that's what causes that so you'll need to check again.
Use the Tomcat Manager's "Server Status" page to see exactly what version of Java it's using.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
subject: Bad version number
It's not a secret anymore!