Netbeans 6.9.1 安装错误:“未找到兼容的 JDK。”
我正在尝试在 Ubuntu 9.04 中安装 Netbeans 6.9.1。
但是当我运行脚本时 ./netbeans-6.9.1-ml-linux.sh
,安装程序 GUI 显示错误“未找到兼容的 JDK。”, 在下一个窗口中,它会询问已安装的 JDK 路径。 我该怎么做才能安装它?
I'm trying to install Netbeans 6.9.1 in my Ubuntu 9.04.
But when i run the script./netbeans-6.9.1-ml-linux.sh
, the installer GUI displays the error "No compatible JDK was found.",
and in the next window it asks for the installed JDK path.
What can I do to get it to install?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
确保您安装的 Java 开发工具包与您尝试在系统中安装的 Netbeans 版本兼容。如果没有,则必须下载 JDK 并安装。然后尝试再次运行安装。从此处下载 Java JDK。您可以通过在终端输入命令
javac
来检查是否安装了JDK。Make sure you have installed a Java development kit that is compatible with the Netbeans version you're trying to install in your system. If not, you have to download the JDK and install it. Then try to run the installation again. download the Java JDK from here. You can check whether you have installed an JDK by issuing the command
javac
at the terminal.试试这个网站。我也遇到了同样的问题。我研究如何获得 JDK 兼容性,我在这里领导..
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7-netbeans-download-432126.html
如果还有其他内容,请随时贡献。谢谢。
Try this site. I have encountered same problem as well. I research on how to get JDK compatibility and I am lead here..
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7-netbeans-download-432126.html
Should there be any other things, feel free to contribute. Thanks.
老兄,JDK 1.5 版本支持 6.9.1 和 6.0.1 版本,当 oracle 购买 sun 时,6.9.1 之后的其他内容都被编辑了,我希望他们撤销了对这些旧版本的支持。所以最好选择 1.5。
Dude the version of 6.9.1 and 6.0.1 are supported by JDK versions 1.5 other things after 6.9.1 are edited when oracle bought sun and they revoke their support for these older versions i hope. so better go for 1.5.
这只是由于 javahome 路径丢失造成的。
如果你没有JDK,那么你可以从java安装它。
如果你有 JDK 安装目录,那么你可以在安装 net beans 时使用下面的命令行选项。使用下面的命令行:
对于 Windows 操作系统 - 打开命令提示符
对于 Linux 操作系统 - 打开终端
这应该可以解决问题。
This is only due to javahome path missing.
If you don't have the JDK, then you can install it from java.
if you have the JDK installation directory then you can use below command line option while installing you net beans. Use the command line below:
For Windows OS - Open your command prompt
For Linux OS - Open your Terminal
The should fix the problem.
这是对我来说最快、最简单的一种。
变量名称类型
<前><代码>JAVA_HOME
路径类型
Here's the fastest and easiest one for me.
for variable name type in
for path type in
这个问题可能有多种原因,我也遇到过。如下:
There can be multiple reasons for this problem, which I have encountered. Those are mentioned below:
如果您将 $JAVA_HOME 设置为
/usr/lib/jvm/java-11-openjdk-amd64
,则在 Ubuntu 18.04 上安装 NetBeans 8.0.2 将无法正常工作。修复方法很简单,运行即可。
./netbeans-8.0.2-linux.sh --javahome /usr/lib/jvm/java-8-openjdk-amd64/
If you have $JAVA_HOME setup to
/usr/lib/jvm/java-11-openjdk-amd64
installing NetBeans 8.0.2 on Ubuntu 18.04 wont work.The fix is simple, just run.
./netbeans-8.0.2-linux.sh --javahome /usr/lib/jvm/java-8-openjdk-amd64/