英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论