Can't solve this java.lang.UnsupportedClassVersionError -


i'am trying execute java program mvn, there's little problem can't solve. maven says:

java.lang.unsupportedclassversionerror: main/csvcrawler : unsupported major.minor version 51.0 

so java version not compatible stuff used in program. can't figure how update java, don't understand update... :-)

some other info:

java version "1.6.0_27" javac 1.7.0_25 

can give me hint do? suggestions!

unsupported major.minor version 51.0 

this indicates compiling class using 1.7 compiler , targeting 1.7 vm. when run on 1.6 vm, that's way of saying "hey, have no idea format is" because came out after 1.6 vm did.

to fix, either upgrade vm (you running 1.6.0_27) 1.7, or tell compiler (you running 1.7.0_25) target 1.6.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -