简体   繁体   English

由于错误:“不支持的 JVM 版本”,无法使用 Java 14 安装 netbeans 11.3

[英]Couldn't install netbeans 11.3 with Java 14 due to Error: "Unsupported JVM version"

I'm trying to install netbeans with Java 14.我正在尝试使用 Java 14 安装 netbeans。

I'm getting below error -我收到以下错误 -

> sudo ./Apache-NetBeans-11.3-bin-linux-x64.sh --javahome /home/raj/.sdkman/candidates/java/current
Configuring the installer...
Searching for JVM on the system...
Unsupported JVM version at /home/raj/.sdkman/candidates/java/current.
Try to specify another JVM location using parameter --javahome

Below are my java details -以下是我的 Java 详细信息 -

> which java
/home/raj/.sdkman/candidates/java/current/bin/java


> java --version
openjdk 14 2020-03-17
OpenJDK Runtime Environment (build 14+36-1461)
OpenJDK 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)

My OS Details are -我的操作系统详细信息是 -

> lsb_release -a
LSB Version:    core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
Distributor ID: openSUSE
Description:    openSUSE Leap 15.1
Release:        15.1
Codename:       n/a

How can I fix this problem?我该如何解决这个问题?

Although Apache NetBeans 11.3 fully supports the use of JDK 14, unfortunately its installer does not.尽管 Apache NetBeans 11.3 完全支持使用 JDK 14,但不幸的是它的安装程序不支持。 From the Apache NetBeans 11.3 download page :Apache NetBeans 11.3 下载页面

The installers will not run under JDK 14 because usage is made of the Pack200 Tools and API, for packing and unpacking, which is removed in JDK 14, see JEP 367.安装程序不会在 JDK 14 下运行,因为使用 Pack200 工具和 API 进行打包和解包,在 JDK 14 中已删除,请参阅 JEP 367。

See JEP 367: Remove the Pack200 Tools and API for full details on why this change was made in JDK 14.有关在 JDK 14 中进行此更改的原因的完整详细信息,请参阅JEP 367:删除 Pack200 工具和 API

Your workarounds for this issue are:您针对此问题的解决方法是:

  • Instead of using the installer, download and unzip the zip of Apache NetBeans 11.3 (named netbeans-11.3-bin.zip ) from the download page .不要使用安装程序,而是从下载页面下载并解压缩 Apache NetBeans 11.3(名为netbeans-11.3-bin.zip )的 zip文件 This approach worked for me.这种方法对我有用。
  • Install a version of the JDK < 14, and you can then use the installer to install NetBeans 11.3 with that JDK.安装 JDK < 14 的版本,然后您可以使用安装程序安装带有该 JDK 的 NetBeans 11.3。 Once NetBeans 11.3 is installed you could edit netbeans.conf to make JDK 14 the default Java platform, or simply add it as a second Java platform using Tools > Java Platforms > Add Platform...安装 NetBeans 11.3 后,您可以编辑netbeans.conf以使 JDK 14 成为默认 Java 平台,或者只需使用工具 > Java 平台 > 添加平台将其添加为第二个 Java 平台...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM