Hi Tim and everyone, I had the same problem. I'm using SDKMAN and could not install NetBeans 18 on my Mac because the NetBeans installer said "No Java found".
I fixed it by following https://stackoverflow.com/questions/76523553/how-to-make-usr-libexec-java-home-find-jdk-installed-using-sdkman-on-macos Please see the link for a more full explanation, but in short, the strategy is to trick `/usr/libexec/java_home` into returning something reasonable like `/Library/Java/JavaVirtualMachines/sdkman-current/Contents/Home` by faking it out. Below are the commands I used. You'll want to change "pdurbin" to your username. sudo -i cd /Library/Java/JavaVirtualMachines mkdir sdkman-current cd sdkman-current mkdir Contents ln -s /Users/pdurbin/.sdkman/candidates/java/current /Library/Java/JavaVirtualMachines/sdkman-current/Contents/Home vim Contents/Info.plist (Paste the XML below from the Stack Overflow post.) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" " http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleIdentifier</key> <string>sdkman.current</string> <key>CFBundleName</key> <string>SDKMAN Current JDK</string> <key>JavaVM</key> <dict> <key>JVMPlatformVersion</key> <string>9999</string> <key>JVMVendor</key> <string>Homebrew</string> <key>JVMVersion</key> <string>9999</string> </dict> </dict> </plist> Once all this was in place, `/usr/libexec/java_home` worked and the next time I opened "Apache NetBeans 18.pkg", I was able to advance past the "No Java found" error and install NetBeans. I hope this helps! Phil On Fri, Jan 14, 2022 at 7:53 AM Tim Mullé <tmu...@gmail.com> wrote: > Hi, > > I tried to install NetBeans using the MacOS installer to see if that would > fix my missing Terminal issue, however, I can’t run the installer because I > don’t have a JDK installed normally. > > I use SDKMAN to manage my JDK installations since I work with multiple JDK > versions for my day job and I don’t install JDKs natively. > > The installer said it couldn’t find any JDK8 installations.. > > Is there a way to get it to work with SDKMAN java installations? > > NOTE: I normally just use the ZIP file distribution for my installs of > NetBeans.. I’m just trying to see using the MacOS packager fixes my > Terminal issue from previous emails. > > Note a huge deal, just wondering in case someone else might have the same > setup. > > Thanks, > - Tim > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >