标签:unsupported major.mi java.lang.unsupporte exception
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/clq/hadoop2/MapperReducer : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.apache.hadoop.util.RunJar.main(RunJar.java:201)这是版本不支持造成的,更改方法:JDK向下兼容,当你的Linux中安装的是1.6时,你的工程代码也要相应的调整为1.6. 重新上传问题解决。
Unsupported major.minor version 51.0
标签:unsupported major.mi java.lang.unsupporte exception
原文地址:http://blog.csdn.net/u012516914/article/details/38064155