u014114636
Jusdo6
采纳率0%
2016-08-04 02:07 阅读 4.5k

jdk1.8 出现unsupported major.minor version 52.0

环境变量配置jdk1.8
yjb@user:~/IdeaProjects/First$ java -version
java version "1.8.0_73"
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)
yjb@user:~/IdeaProjects/First$

通过命令行可以运行程序,但是在idea下运行出现unsupported major.minor version 52.0

/home/yjb/Sofware/jdk1.8.0_73/bin/java -Didea.launcher.port=7532 -Didea.launcher.bin.path=/home/yjb/Sofware/idea-IC-162.1121.32/bin -Dfile.encoding=UTF-8 -classpath /home/yjb/Sofware/jdk1.8.0_73/jre/lib/charsets.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/deploy.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/ext/cldrdata.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/ext/dnsns.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/ext/jaccess.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/ext/jfxrt.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/ext/localedata.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/ext/nashorn.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/ext/sunec.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/ext/sunjce_provider.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/ext/sunpkcs11.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/ext/zipfs.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/javaws.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/jce.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/jfr.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/jfxswt.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/jsse.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/management-agent.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/plugin.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/resources.jar:/home/yjb/Sofware/jdk1.8.0_73/jre/lib/rt.jar:/home/yjb/IdeaProjects/First/out/production/First:/home/yjb/IdeaProjects/First/tmVar333.jar:/home/yjb/IdeaProjects/First/tmVar.jar:/home/yjb/IdeaProjects/First/tmVar22.jar:/home/yjb/IdeaProjects/First/GNormPlus.jar:/home/yjb/IdeaProjects/First/tmVarJava.jar:/home/yjb/Sofware/idea-IC-162.1121.32/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain Try
null
Exception in thread "main" java.lang.UnsupportedClassVersionError: tmVarlib/tmVar : Unsupported major.minor version 52.0
null
at java.lang.ClassLoader.defineClass1(Native Method)
null
at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
null
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
null
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
null
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
null
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
null
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
null
at java.security.AccessController.doPrivileged(Native Method)
null
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
null
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
null
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
null
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
null
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
end error!!!!!!!!!!!!!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

相关推荐