java - Unsupported major.minor version 51.0 while executing JSP -


i trying deploy jsp , java files on server. when try access jsp error msg

 javax.servlet.servletexception: java.lang.unsupportedclassversionerror: com/usct/db/dbconnect : unsupported major.minor version 51.0 

i read few posts , found out due difference in java version on 2 different platforms using java 1.7 on server , client when

java -version 

in jdk/bin shows java version 1.7.0_10 ,

java se runtime environment (build 1.7.0_10-b18) 

can please me issue?

thank you

... using java 1.7 on server , client when ...

the explanation using java 1.6 or earlier ... despite think. in other words, when run java -version command-line, getting different java installation 1 being used run web container.

(if on linux system, should able tell jvm being used running ps -efl , greping "java" or similar. alternatively, use approach suggested @dbf.)

it worth noting version of java on client not relevant. exception occurring on server side.

reference: how fix java.lang.unsupportedclassversionerror: unsupported major.minor version - explains general problem , solution.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -