Open rokon12 opened 2 years ago
SDKMAN most likely doesn't install the JDK as "runtime", discoverable by other applications (JREs technically don't exist anymore anyway).
netbeans_jdkhome
in etc/netbeans.conf. I am not a mac user so this is just a guess.
See also conversation at the end of the macOS vote thread - https://lists.apache.org/thread/8k4g47n8y7gyfbwhdmbhtryvjx30qdhd
Other option is to use an installer with bundled JDK runtime, under Community Installers at https://netbeans.apache.org/download/nb13/nb13.html Then you can use the SDKMAN managed JDKs for projects.
You can also try symlinking any JDKs installed through SDKMAN into the system-wide JVM location:
for me it's: ln -s /opt/sdkman/candidates/java/17.0.3.fx-zulu/zulu-17.jdk /Library/Java/JavaVirtualMachines
@smithtonson Thanks it helped
I'm able to successfully install using the below command. But is works with sdkman zulu only though
sudo ln -s ~/.sdkman/candidates/java/20.0.2.fx-zulu/zulu-20.jdk /Library/Java/JavaVirtualMachines
sudo installer -package /Volumes/Apache\ NetBeans\ 18/Apache\ NetBeans\ 18.pkg -target /
Apache NetBeans version
Apache NetBeans 13
What happened
I could not install the latest Netbeans 13 on my MacBook Pro. I used SDKMAN to manage java on my machine. I have java installed on my device, and I have been working with other IDE (such as IntelliJ IDEA). When I tried to install Netbeans, it shows the following message:
I tried with homebrew and I got the same message:
How to reproduce
Steps:
Did this work correctly in an earlier version?
No
Operating System
macOS Monterey
JDK
Java 18
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
No response
Are you willing to submit a pull request?
No
Code of Conduct
Yes