由于以下错误,无法将Netbeans 11.3与Java 14一起安装: [英] Couldn't install netbeans 11.3 with Java 14 due to Error: "Unsupported JVM version"

查看:460
本文介绍了由于以下错误,无法将Netbeans 11.3与Java 14一起安装:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用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

如何解决此问题?

推荐答案

尽管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的zip压缩文件(名为 netbeans-11.3-bin.zip )
  • 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...

这篇关于由于以下错误,无法将Netbeans 11.3与Java 14一起安装:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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