java - Unsupported major.minor version 52.0 Error -
this question has answer here:
i have codes compiled on jdk 1.8. created war file , deployed on tomcat8 in ubuntu server running jre 1.8. have error when opening main page:
java.lang.unsupportedclassversionerror: com/dash/io/web/bind/homectrl : unsupported major.minor version 52.0
$ java -versionjava version "1.8.0_45" java(tm) se runtime environment (build 1.8.0_45-b14) java hotspot(tm) 64-bit server vm (build 25.45-b02, mixed mode) $ javac -version javac 1.8.0_45 $ echo $jre_home /usr/local/java/jdk1.8.0_45/jre $ /usr/local/apache-tomcat-8.0.22/bin/catalina.sh version using catalina_base: /usr/local/apache-tomcat-8.0.22 using catalina_home: /usr/local/apache-tomcat-8.0.22 using catalina_tmpdir: /usr/local/apache-tomcat-8.0.22/temp using jre_home: /usr/local/java/jdk1.8.0_45/jre using classpath: /usr/local/apache-tomcat-8.0.22/bin/bootstrap.jar:/usr/local/apache-tomcat-8.0.22/bin/tomcat-juli.jar server version: apache tomcat/8.0.22 server built: apr 29 2015 11:46:15 utc server number: 8.0.22.0 os name: linux os version: 3.13.0-52-generic architecture: amd64 jvm version: 1.8.0_45-b14 jvm vendor: oracle corporation
need help. thanks.
i'm guessing using maven make war , maven-compiler-plugin. have set source , target version there ? default configuration may not want. http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html
Comments
Post a Comment