加载Apache Netbeans 9.0或10时未找到Java错误 [英] Java not found error when loading Apache Netbeans 9.0 or 10

查看:189
本文介绍了加载Apache Netbeans 9.0或10时未找到Java错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了该程序的存档,将其解压缩到Windows上的C驱动器,然后当我尝试在 bin 文件夹中运行任一可执行文件(32bit/64bit)时,出现错误消息:

I downloaded the archive for the program, unzipped it to C drive on Windows, then when I try to run either executable (32bit/64bit) in the bin folder I get the error message:

找不到JAVA 1.8或更高版本.

尽管已经安装了Java 10(JRE).我还尝试了安装Java 9,但遇到了同样的问题.

in spite of Java 10 (JRE) being already installed. I also tried Installing Java 9 but was stuck with the same message.

谢谢您的帮助,谢谢.

推荐答案

找到您的Netbeans安装文件,并在其中找到etc/netbeans.conf文件.使用任何文本编辑器将其打开,然后找到包含netbeans_jdkhome的行.如果已将其注释掉(以#开头的行),则删除#以启用设置.然后,将值设置为JDK的路径.可能类似于C:\Program Files\Java\jdk-10.0.1.

Locate your Netbeans installation and in it the etc/netbeans.conf file. Open it with any text editor, and locate the line containing netbeans_jdkhome. If it is commented out (line starts with #), then remove the # to enable the setting. Then, set the value to the path to your JDK. This might be somethiing like C:\Program Files\Java\jdk-10.0.1.

尝试再次运行该程序,它现在应该可以运行了.至少对我有用.

Try to run the program again, it should work now. At least, it did for me.

还要确保您安装了 Java开发工具包(JDK),而不仅仅是Java Runtime Environment(JRE). Netbeans需要安装前者才能运行.

Also, ensure that you installed the Java Development Kit (JDK), not only the Java Runtime Environment (JRE). Netbeans needs the former to be installed in order to function.

这篇关于加载Apache Netbeans 9.0或10时未找到Java错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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