Ubuntu中不支持的major.minor 52.0版本 [英] Unsupported major.minor version 52.0 in ubuntu
本文介绍了Ubuntu中不支持的major.minor 52.0版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 jdk1.8.0_25
,并且当我使用以下命令检查Java版本时:
I am using jdk1.8.0_25
, and when I check the version of Java with the following command:
java -version
它输出以下内容
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
请解决我的问题.
推荐答案
我遇到了同样的错误,并且当Java版本正确设置为8时,我的JAVA_HOME env var仍然设置为7.
I got the same error, and while the java version correctly set to 8, my JAVA_HOME env var was still set to 7.
执行此操作已为我修复:
Executing this fixed it for me:
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
这篇关于Ubuntu中不支持的major.minor 52.0版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文