由于错误:“不支持的 JVM 版本",无法使用 Java 14 安装 netbeans 11.3 [英] Couldn't install netbeans 11.3 with Java 14 due to Error: "Unsupported JVM version"

查看:12
本文介绍了由于错误:“不支持的 JVM 版本",无法使用 Java 14 安装 netbeans 11.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Java 14 安装 netbeans.

I'm trying to install netbeans with Java 14.

我遇到以下错误 -

> 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

以下是我的 Java 详细信息 -

Below are my java details -

> 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?

推荐答案

虽然 Apache NetBeans 11.3 完全支持使用 JDK 14,但不幸的是它的安装程序不支持.从 Apache NetBeans 11.3 下载页面:

Although Apache NetBeans 11.3 fully supports the use of JDK 14, unfortunately its installer does not. From the Apache NetBeans 11.3 download page:

安装程序不会在 JDK 14 下运行,因为使用的是Pack200 工具和 API,用于打包和解包,在JDK 14,参见 JEP 367.

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.

请参阅 JEP 367:删除 Pack200 工具和 API 以了解有关此更改原因的完整详细信息在 JDK 14 中制作.

See JEP 367: Remove the Pack200 Tools and API for full details on why this change was made in JDK 14.

您对此问题的解决方法是:

Your workarounds for this issue are:

  • 不要使用安装程序,而是下载并解压缩 Apache NetBeans 11.3(名为 netbeans-11.3-bin.zip)的 zip 文件.这种方法对我有用.
  • 安装一个版本的 JDK
  • 14,然后您可以使用安装程序安装带有该 JDK 的 NetBeans 11.3.安装 NetBeans 11.3 后,您可以编辑 netbeans.conf 以使 JDK 14 成为默认 Java 平台,或者只需使用 工具 > Java 平台 > 添加平台将其添加为第二个 Java 平台...
  • 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. 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. 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...

这篇关于由于错误:“不支持的 JVM 版本",无法使用 Java 14 安装 netbeans 11.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆