If you are getting error Java.lang.UnsupportedClassVersionError Unsupported major.minor version 51.0 during compilation time
Check your java versionIn Unix type command : java -verionjava version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12) Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing)
java.lang.UnsupportedClassVersionErroroccurs because of a higher JDK during compile time and lower JDK during runtime.
The version number shown describe which version if Java was used to compile the code.
The reported major numbers are
J2SE 7 = 51, J2SE 6.0 = 50, J2SE 5.0 = 49, JDK 1.4 = 48, JDK 1.3 = 47, JDK 1.2 = 46, JDK 1.1 = 45