简体   繁体   English

MacOS X Big Sur 上的 Netbeans 没有找到 JDK

[英]Netbeans on MacOS X Big Sur no JDK Found

I am trying to install Netbeans 8.2 under Big Sur.我正在尝试在 Big Sur 下安装 Netbeans 8.2。 All my attempts failed, each time I get "No JDK found".我所有的尝试都失败了,每次我收到“找不到 JDK”时。 I have already JDK 1.8.我已经有了 JDK 1.8。 Thanks for any idea!感谢您的任何想法!

MacOS Big Sur - Apache Netbeans 12 Missing Java Home Solution MacOS Big Sur - Apache Netbeans 12 Missing Java Home 解决方案

Open Terminal打开终端

vi as sudo to the netbeans.conf file vi 作为对 netbeans.conf 文件的 sudo

sudo vi /Applications/NetBeans/Apache\\ NetBeans\\ 12.1.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf

Locate the netbeans_jdkhome parameter找到 netbeans_jdkhome 参数

Uncomment the Line and make sure its equal to the $JAVA_HOME path eg取消注释该行并确保它等于 $JAVA_HOME 路径,例如

netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home"

Quit Netbeans and restart it, it works like Magic Happy Coding 👌🏿 enter image description here退出 Netbeans 并重新启动它,它就像 Magic Happy Coding 👌🏿在此处输入图片描述

As I can read around it is possible to run without any issues only with latest java version.正如我可以阅读的那样,只有使用最新的 Java 版本才能运行而不会出现任何问题。 You can make Netbeans work by installing Java 15 for example, checking $JAVA_HOME and I hope there are would be a fix shortly as I am also fun of java 8.例如,您可以通过安装 Java 15 来使 Netbeans 工作,检查 $JAVA_HOME,我希望很快就会有修复,因为我也很喜欢 Java 8。

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

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