Netbeans在MacOS X Big Sur上找不到JDK。

huangapple go评论86阅读模式
英文:

Netbeans on MacOS X Big Sur no JDK Found

问题

我正在尝试在Big Sur下安装Netbeans 8.2。我所有的尝试都失败了,每次都会出现“找不到JDK”。我已经安装了JDK 1.8。谢谢任何想法!

英文:

I am trying to install Netbeans 8.2 under Big Sur. All my attempts failed, each time I get "No JDK found". I have already JDK 1.8.
Thanks for any idea!

答案1

得分: 1

MacOS Big Sur - Apache Netbeans 12 无法找到 Java Home 解决方法

打开终端

以管理员身份用 vi 打开 netbeans.conf 文件

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

找到 netbeans_jdkhome 参数

取消注释并确保它等于 $JAVA_HOME 的路径,例如

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

退出 NetBeans 并重新启动,问题就会像魔术般解决
愉快的编码 👌🏿 查看图片描述

英文:

MacOS Big Sur - Apache Netbeans 12 Missing Java Home Solution

Open Terminal

vi as sudo to the netbeans.conf file

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

Locate the netbeans_jdkhome parameter

Uncomment the Line and make sure its equal to the $JAVA_HOME path e.g

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

答案2

得分: 0

根据我所了解,只有在最新的Java版本下才能无问题运行。你可以通过安装Java 15来使Netbeans工作,检查$JAVA_HOME,我希望很快会有一个修复,因为我也喜欢Java 8。

英文:

As I can read around it is possible to run without any issues only with latest java version. 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.

huangapple
  • 本文由 发表于 2020年9月9日 04:17:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/63801009.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定