• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bad Version Number when deploying app

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear ranchers:

When trying to deploy my application on tomcat 5.5 I get the following error:
SEVERE: Error configuring application listener of class br.gov.fazenda.ouvidoria.sisouvidor.listener.ApplicationListener
java.lang.UnsupportedClassVersionError: Bad version number in .class file

I was compiling my application using JDK 1.6 but I changed that to 1.5.0_11, which is the same as the one my tomcat server is using. I'm still getting the same error.
Could anyone tell me if there is anything else that causes this error?
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Henrique Ordine:

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


-------------------------------------------------------------------
i think you are using different jdk and jre version...
----------------------------------------------------------------------


one more question to you why you change your .class files from 1.6 to 1.5
-----------------------------------------
you can use jdk 1.6 to tomcat5.5
------------------------------------------

correct me ,if i am wrong
reply
    Bookmark Topic Watch Topic
  • New Topic