Hi Scott, When I run "launchctl getenv JAVA_HOME” I don’t get anything back. So that would explain why the installer doesn’t see it, I guess. But it doesn’t explain why previously installers *did* see it, but now they don't. Nothing’s really changed - except the the default shell Apple uses is now zsh and I do have JAVA_HOME set in my $HOME/.zshrc.
thnx, tom On Dec 23, 2020 at 3:53:46 PM, Scott Palmer <swpal...@gmail.com> wrote: > No, that’s JAVA_HOME in your command-line shell. NOT the JAVA_HOME for > GUI apps. To get the JAVA_HOME that the IDE would see you need to use the > launchctl command. > Try: > launchctl getenv JAVA_HOME > > Regards, > > Scott > > On Dec 23, 2020, at 12:47 PM, Franck Arnulfo <franck.arnu...@gmail.com> > wrote: > > > JAVA_HOME is valid: > farnulfo@MacBook-Pro ~ % echo $JAVA_HOME > /Users/farnulfo/.sdkman/candidates/java/current > > farnulfo@MacBook-Pro ~ % $JAVA_HOME/bin/java -version > openjdk version "11.0.9.1" 2020-11-04 > OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1) > OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode) > > I use the Apache-NetBeans-12.2-bin-macosx.dmg installer on macOs Big Sur > with AdoptOpenJDK installed with sdkman > > > On Wed, Dec 23, 2020 at 6:32 PM Scott Palmer <swpal...@gmail.com> wrote: > >> I noticed something like this just yesterday when I was replacing my JDKs >> with Zulu JDK FX. Until I set JAVA_HOME with launchctl I would get the >> same message. Are you sure you don’t have a JAVA_HOME set for GUI apps that >> isn’t valid? (This is not the same as setting JAVA_HOME in the command >> line.) >> >> Scott >> >> On Dec 22, 2020, at 7:01 PM, Franck Arnulfo <franck.arnu...@gmail.com> >> wrote: >> >> >> I've got the same issue: >> >> Netbeans 12.2 installer can't find JDK on macOS BigSur with JDK installed >> with SDKMAN. >> <image.png> >> >> >> Java is correctly installed, even the /usr/libexec/java_home is correct : >> >> farnulfo@MacBook-Pro ~ % java -version >> openjdk version "11.0.9.1" 2020-11-04 >> OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1) >> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode) >> farnulfo@MacBook-Pro ~ % which java >> /Users/farnulfo/.sdkman/candidates/java/current/bin/java >> farnulfo@MacBook-Pro ~ % /usr/libexec/java_home >> /Users/farnulfo/.sdkman/candidates/java/current >> farnulfo@MacBook-Pro ~ % >> >> The zip distribution of Netbeans 12.2 run fine with netbeans/bin/netbeans >> >> >> >> >> On Thu, Aug 27, 2020 at 3:19 AM Thomas Wolf <tjw...@gmail.com> wrote: >> >>> >>> >>> > On Aug 26, 2020, at 8:59 PM, Thomas Wolf <tjw...@gmail.com> wrote: >>> > >>> > Hey, >>> > Has anyone had this issue? >>> > >>> > I haven’t used Netbeans on my home mac for awhile. I recently >>> installed the macOS Big Sur beta and when I tried running my Netbeans 11.3 >>> from the dock as usual, I get a warning (see first attachment) about the >>> JDK being missing. I said, hm - that’s odd - I have multiple different >>> Java versions and Terminal shows me pointing to v14: >>> > >>> > twolf@MacBook-Pro ~ % java -version >>> > java version "14.0.2" 2020-07-14 >>> > Java(TM) SE Runtime Environment (build 14.0.2+12-46) >>> > Java HotSpot(TM) 64-Bit Server VM (build 14.0.2+12-46, mixed mode, >>> sharing) >>> > >>> > twolf@MacBook-Pro ~ % ls /Library/Java/JavaVirtualMachines/ >>> > jdk-12.0.2.jdk/ jdk1.7.0_51.jdk/ jdk1.8.0_31.jdk/ >>> > jdk-14.0.2.jdk/ jdk1.8.0_25.jdk/ zulu-8.jdk/ >>> > >>> > I couldn’t figure it out, so I figured - good time to install 12.0. >>> Downloaded the 12.0 installer and ran that. But the installer fails itself >>> - also because it can’t find the JDK! See second screen shot. >>> > >>> >>> Well, I finally did get my old 11.3 version to work by modifying >>> /Applications/NetBeans/Apache NetBeans >>> 11.3.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf and >>> manually setting the netbeans_jdkhome variable to one of the JDKs I have. >>> >>> But how do I get the Netbeans 12 installer to work? >>> >>> Thanks again, >>> Tom >>> >>> >>> >>> --------------------------------------------------------------------- >>> 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 >>> >>> >> >> -- >> Franck >> >> > > -- > Franck > >