tomcat - Jetty running on 1.6 JVM is unable to run webapp compiled on Java 1.6 -


i trying start simple java webapp on jetty (v9.0) webserver.

using maven built , created war , can see in manifest file, used java 1.6u43 compilation on os x

contents of meta-inf/manifest.mf

manifest-version: 1.0 archiver-version: plexus archiver created-by: apache maven built-by: irraju build-jdk: 1.6.0_43 

i running jetty on ubuntu , can seen, have higher version of java 1.6.0_45. if java backward compatible, java application should run on jetty failing unsupported minor version

root# java -version java version "1.6.0_45" java(tm) se runtime environment (build 1.6.0_45-b06) java hotspot(tm) client vm (build 20.45-b01, mixed mode, sharing)  root# java -ddebug -jar start.jar  exception in thread "main" java.lang.unsupportedclassversionerror: org/eclipse/jetty/start/main : unsupported major.minor version 51.0     @ java.lang.classloader.defineclass1(native method)     @ java.lang.classloader.defineclasscond(classloader.java:631)     @ java.lang.classloader.defineclass(classloader.java:615)     @ java.security.secureclassloader.defineclass(secureclassloader.java:141)     @ java.net.urlclassloader.defineclass(urlclassloader.java:283)     @ java.net.urlclassloader.access$000(urlclassloader.java:58)     @ java.net.urlclassloader$1.run(urlclassloader.java:197)     @ java.security.accesscontroller.doprivileged(native method)     @ java.net.urlclassloader.findclass(urlclassloader.java:190)     @ java.lang.classloader.loadclass(classloader.java:306)     @ sun.misc.launcher$appclassloader.loadclass(launcher.java:301)     @ java.lang.classloader.loadclass(classloader.java:247) not find main class: org.eclipse.jetty.start.main. program exit. 

other people on internet facing issue when trying run java 1.7 compiled applications on 1.6* jvms. unable figure out why happening in case both envs 1.6* , deployment env has higher version of jvm.

if deploy application on tomcat using java 1.6.0_45, doesn't complain though , works fine. missing trivial here?

jetty 9 requires ran java 7, according list of jetty versions.

you can try compile jetty 9 using java 6, not work (otherwise, jetty devs might've done well).


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -