• 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

Unsupported major.minor version 51.0

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi There,
I am using tomcat version 6.0.37 on a 64 bit Windows7 machine, with jdk 1.6.0_38. While the server starts up fine I am unable to deploy my web application with the below error.
"Unsupported major.minor version 51.0". On searching on forums it seems like the versions between the jdk tomcat is using and the jdk used for compiling are different, but I have my tomcat using the same jdk as the one I am using for building. Yet the error exists. Please advise!

C:\Installs\apache-tomcat-6.0.37\bin>java -version
java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)

C:\Installs\apache-tomcat-6.0.37\bin>catalina.bat version
Using CATALINA_BASE: "C:\Installs\apache-tomcat-6.0.37"
Using CATALINA_HOME: "C:\Installs\apache-tomcat-6.0.37"
Using CATALINA_TMPDIR: "C:\Installs\apache-tomcat-6.0.37\temp"
Using JRE_HOME: "C:\Installs\Java\jdk"
Using CLASSPATH: "C:\Installs\apache-tomcat-6.0.37\bin\bootstrap.jar"
Server version: Apache Tomcat/6.0.37
Server built: Apr 29 2013 11:34:47
Server number: 6.0.0.37
OS Name: Windows 7
OS Version: 6.1
Architecture: amd64
JVM Version: 1.6.0_38-b05
JVM Vendor: Sun Microsystems Inc.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Version 51 is what's produced by a Java 7 compiler - if you're absolutely certain that it's not your code, maybe it's a 3rd party library you're using.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic