已安装 Oracle Java,但在安装软件时,我收到“不支持您的 Java 版本。”

Car*_*Kar 3 debian java

我正在尝试在我的机器上安装以下软件debian jessie

root@www:~$ sudo update-alternatives --config java
[sudo] password for root:
There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                           Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-7-oracle/jre/bin/java         1082      auto mo                                       de
  1            /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java   1071      manual                                        mode
  2            /usr/lib/jvm/java-7-oracle/jre/bin/java         1082      manual                                        mode
  3            /usr/lib/jvm/java-8-oracle/jre/bin/java         1081      manual                                        mode

Press enter to keep the current choice[*], or type selection number: 0
Run Code Online (Sandbox Code Playgroud)

当我想安装软件时,我得到:

> sudo ./install.sh
Your version of Java is not supported.
Please update your Java to version 1.8 or newer to be able to use the software on your computer.
Run Code Online (Sandbox Code Playgroud)

有什么建议为什么我找不到合适的 Java 版本?

Ste*_*itt 15

您正在安装的软件正在寻找 Java 1.8,也称为 Java 8。您需要在替代配置中选择选项 3。