简体   繁体   English

在此计算机上找不到Java SE Development Kit

[英]Java SE Development Kit not found on this computer

I had netbeans 8.1 installed on my PC (windows 8.1) with JDK version 8. I uninstalled netbeans 8.1 and then installed netbeans 8.2. 我在装有JDK版本8的PC(Windows 8.1)上安装了netbeans 8.1。我先卸载了netbeans 8.1,然后又安装了netbeans 8.2。 After installation I ran it and everything worked fine. 安装后,我运行了它,一切正常。

After installing netbeans 8.1, I uninstalled JDK 8 and then installed JDK 9. 安装netbeans 8.1之后,我卸载了JDK 8,然后安装了JDK 9。

After installing JDK 9, when I tried to run NetBeans again, it gave me error that 安装JDK 9之后,当我尝试再次运行NetBeans时,出现了以下错误

Java SE Development Kit not found on this computer 在此计算机上找不到Java SE Development Kit

在此处输入图片说明

I looked it up on the internet and came to know that cause of this error was that when NetBeans 8.2 was installed with JDK version 8, NetBeans was configured to use JDK 8. So when JDK 9 was installed, NetBeans couldn't find the JDK 8 which it was configured to use by default and hence this error was thrown. 我在Internet上进行了查找,然后知道该错误的原因是当NetBeans 8.2与JDK版本8一起安装时,NetBeans被配置为使用JDK8。因此,当安装JDK 9时,NetBeans找不到JDK。 8,它被配置为默认使用,因此抛出此错误。

I then uninstalled NetBeans again and then when I tried to run its setup again, it gave me the same error. 然后,我再次卸载了NetBeans,然后当我尝试再次运行其安装程序时,它给了我同样的错误。 Now I can't even run the NetBeans setup. 现在,我什至无法运行NetBeans安装程序。

Can someone suggest a solution to this problem? 有人可以建议解决这个问题的方法吗?

PS. PS。 I have already added JDK 9 to environment path variable. 我已经将JDK 9添加到环境路径变量中。

So after some searching i have come to know that for netbeans 8.2 , you need JDK 8 because JDK 8 is required to use JavaFX 8 features in NetBeans IDE 8.2. 所以经过一番搜索我已经知道,对netbeans 8.2 ,你需要JDK 8 ,因为JDK 8是需要使用JavaFX 8功能在NetBeans IDE 8.2。

After installing JDK 8 , Problem was fixed. 安装JDK 8 ,问题已修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM