Java 如何修复 Netbeans IDE 安装错误?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/60752703/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 01:22:03  来源:igfitidea点击:

How to fix Netbeans IDE installation error?

javaqtnetbeans

提问by Short Circuit

I'm trying to install Apache Netbeans IDE on my Windows 10, then I encountered this problem "Critical Error- An unexpected exception happened in thread main. Exception: java.lang.NoClassDefFoundError: java/util/jarPack200"

我正在尝试在我的 Windows 10 上安装 Apache Netbeans IDE,然后我遇到了这个问题“严重错误 - 线程 main 中发生了意外异常。异常:java.lang.NoClassDefFoundError:java/util/jarPack200”

Critical Error

关键错误

After I click the Ok button another Error popped up

单击“确定”按钮后,弹出另一个错误

"Apache Netbeans IDE Installer- An error occurred while running java process Qt: Untested Windows Version 10.0 detected!"

“Apache Netbeans IDE 安装程序 - 运行 Java 进程 Qt 时出错:检测到未经测试的 Windows 版本 10.0!”

Apache Netbeans Error

Apache Netbeans 错误

I also installed the latest JDK, and my Windows also updated before I tried to install Netbeans, I don't know what's causing the problem, if its the JDK or my Windows.

我还安装了最新的 JDK,并且在尝试安装 Netbeans 之前,我的 Windows 也更新了,我不知道是什么导致了问题,如果是 JDK 还是我的 Windows。

I tried searching on google for this problem but there's no result on how to fix this.

我尝试在谷歌上搜索这个问题,但没有关于如何解决这个问题的结果。

Apache Netbeans 11.3 Java SE Development Kit 14

Apache Netbeans 11.3 Java SE 开发工具包 14

采纳答案by Shawn Wilson

I was able to solve this same issue by installing JDK version 13 instead of version 14.

我能够通过安装 JDK 版本 13 而不是版本 14 来解决同样的问题。

回答by Sahel Marji

go on your panel control and see if you have a previous version of NetBeans. You should uninstall the previous version and install the new

继续您的面板控件,看看您是否有以前版本的 NetBeans。您应该卸载以前的版本并安装新的

回答by Francisco De la cruz lucas

I have had the same problem and now that I have solved it, I would like to share it with you.

我遇到了同样的问题,现在我已经解决了,我想与您分享。

I'm not sure if this is your problem but in my case was that I was tried to install

我不确定这是否是您的问题,但在我的情况下是我试图安装

Java JDK 14 and Apache NetBeans 11.3

Java JDK 14 和 Apache NetBeans 11.3

And the problem was the Java Version of JDK, download the 11 JDK, and install.

问题是JDK的Java版本,下载11 JDK并安装。

And that's all, it works .

这就是全部,它有效。

回答by Masud Tarek

My Solution: First replaced jdk-14 files by jdk-13. Installed Apache NB. Then restored files of jdk-14. NB installer does not support jdk-14 (but NB 11.3 itself supports jdk-14)

我的解决方案:首先用 jdk-13 替换 jdk-14 文件。安装了Apache NB。然后恢复jdk-14的文件。NB 安装程序不支持 jdk-14(但 NB 11.3 本身支持 jdk-14)

回答by Samuel Torres

In my case, the error occurred because I had installed the JDK version 14. By installing version 11 the error was fixed.

就我而言,发生错误是因为我安装了 JDK 14 版。通过安装 11 版,错误得到了修复。

回答by mytkavish

Instead of using the installer, you can download the zip file of the Netbeans found here! and then use it with JDK 14.

您可以下载此处找到的 Netbeans 的 zip 文件,而不是使用安装程序 !然后将它与 JDK 14 一起使用。