• 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

JSP compiled Error for tomcat5.0.16

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
tomcat5.0.16
already copy %javahome%/lib/tools.jar to %tomcathome%/common/lib
but JSP compiled Error:
com/sun/tools/javac/Main (Unsupported major.minor version 48.0)
why?
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why would you copy that file? It's not necessary if you already have a JDK on the system and properly set JAVA_HOME

The major.minor version sometimes results from having a class compiled with a JDK1.4 compiler being run by a lower versioned JDK.

This might happen, for example, if you have JAVA_HOME pointing to a JDK 1.3 (and so tomcat runs with that JDK), but have copied tools.jar from JDK 1.4.

Whatever is hapening in Tomcat, the major.minor version issue means that you have conflicting tools.jar somewhere.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic