I'm trying to run PUMA benchmark set(Purdue Mapreduce Benchmarks Suite: for hadoop). I ran one application(wordcount) appropriately but couldn't run the other one(invertedindex). Error occures at runtime and it says
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/hadoop/examples/InvertedIndex : Unsupported major.minor version 51.0
I googled and found that it's because of the java version. I checked the java version and recompile the code and then run it. But still the same error occured at runtime for invertedindex application and wordcount application works well.
$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
$ javac -version
javac 1.7.0_51
How can I resolve this problem? Can this error be caused by source code?