Pretty new to Java and also to Mac ... I want to make sure JAVA_HOME is set so in other programs I can use its path. So I did some Googling and here is what I got:
I
I had this problem after setting JAVA_HOME with jenv. You can solve the problem by editing file
/Applications/Eclipse.app/Contents/Info.plist
Just set path to your version of java by uncommenting / editing appropriate part of file. For AdoptOpenJDK installed with homebrew it looks like this:
Eclipse
-vm /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/java
-keyring
~/.eclipse_keyring