java - Why am I getting "Unsupported Major Minor Version 52.0" compile time error? -
i have spring project running on jre 8.0. reason, in application context xml file, i'm getting following error tag:
<context:component-scan base-package="com.myproject.controller" />
error:
error occured processing xml 'com/myproject/controller/protocol/fetchresponsebody : unsupported major.minor version 52.0'. see error log more details servlet-context.xml /eyecontrol/src/main/webapp/web-inf/spring line 19 spring beans problem
the class in question annotation follow:
@target({ elementtype.type, elementtype.method }) @retention(retentionpolicy.runtime) @documented @responsebody public @interface fetchresponsebody { }
the thing is, i'm getting error on pc. laptop not have error @ all. also, regardless of compile time "error", not seem have issues running whether through eclipse or through terminal.
the run-as configuration selected jre8.0 , build path contains same jre. issue doesn't hinder progress sure hall annoying see!
any ideas?
right click on project in package explorer(in eclipse)
java compiler -> check if compiler compliance level set 1.8
Comments
Post a Comment