eclipse - Unsupported major.minor version 52.0, tomcat 7, java 7/8 problems -


i know there tons of these questions. have been through lot. have been stuck on issue >24 hours.

i using:

  • windows 8.1, 64bit
  • eclipse ide
  • tomcat 7

i want do:

make small website 4 pages loads data sql server , other simple stuff. java code works if run plain java in eclipse.

the code works if run in jsp project java 8 on localhost.

however, need host on java 7 server. cannot update server.

first tried uploading anyway (by exporting .war , uploading that), did not work. then, set settings (preferences/java/compiler, preferences/java/installed jres) java 7 while using java 8. projects not overriding default.

setting localhost java 7 settings makes localhost jsp unable work (same error), still works in plain java on computer.

i have tried cleaning temporary/compiled files force recompilation (project/clean). have done every time between trying new things.

i importing classes jsp server using:

<%@ page import="jdbc.publication"%> <%@ page import="jdbc.sqlpublicationmapper"%> 

and these names of classes. classes in web-inf\classes folder in jsp folder. copy them jdbc\bin\jdbc folder other project after compiling them.

there no compilation errors.

there no relevant warnings. concern html formatting stuff.

i have tried uninstall java 8 , have java 7 installed (jre , jdk), still same error. yes, have recompiled files after this.

i running out of ideas try. makes no sense me.

i not java developer, code in r/python/php/js, please give answers can understand.

any ideas?

turns out solution more mundane. apparently server not appropriately using .class files had given it. these files updating. instead relying on old .jar file containing same classes. thus, thought using class files, instead using old .jar file. .jar file exported java 8. exporting new version of file fixed issue.

tl;dr make sure eventual .jar files updated, not .class files.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -