title: SDKMAN! does not work with Eclipse.app or SpringToolSuite4.app (on Mac)
body: <p>This is a similar issue to:
  <a href="https://stackoverflow.com/questions/48248222/eclipse-cant-find-jdk-installed-with-sdkman">Eclipse can&#39;t find jdk installed with sdkman</a></p>
  
  <p>I am still facing the issue on Mac (<code>macos-mojave</code>)</p>
  
  <p>Both of my</p>
  
  <pre><code>/usr/bin/java
  /usr/bin/javac 
  </code></pre>
  
  <p>are pointing to</p>
  
  <pre><code>/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
  /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac
  </code></pre>
  
  <p>respectively. </p>
  
  <p>SDKMAN! does install the proper <code>java</code> and <code>javac</code> for the SDKMAN!'s default Java version.</p>
  
  <p>Thus, I do have proper <code>java</code> and <code>javac</code>:</p>
  
  <pre><code>% java -version
  openjdk version "11.0.3" 2019-04-16
  OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)
  OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode)
  
  % javac -version
  javac 11.0.3
  </code></pre>
  
  <p>However, I do not have any Java versions installed in:</p>
  
  <pre><code>ls -la /Library/Java/JavaVirtualMachines 
  total 0
  drwxr-xr-x  2 root  wheel   64 Jun 19 10:06 .
  drwxr-xr-x  4 root  wheel  128 Apr 16 06:16 ..
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I also tried updating the JVM reference in <code>/Applications/SpringToolSuite4.app/Contents/Eclipse/SpringToolSuite4.ini</code> (comparable to <code>Eclipse.ini</code>):</p>
  
  <pre><code>-vm
  /Users/johndoe/.sdkman/candidates/java/current/bin/java
  -startup
  ../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.300.v20190213-1655.jar
  --launcher.library
  ../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1000.v20190125-2016
  -product
  org.springframework.boot.ide.branding.sts4
  --launcher.defaultAction
  openFile
  -vmargs
  -Dosgi.requiredJavaVersion=1.8
  -Xms256m
  -Xmx1024m
  -XX:+UseG1GC
  -XX:+UseStringDeduplication
  --add-modules=ALL-SYSTEM
  -XstartOnFirstThread
  -Dorg.eclipse.swt.internal.carbon.smallFonts
  -Xdock:icon=../Resources/sts4.icns
  </code></pre>
  
  <p>I do get a splash screen for STS, but it still reports no JVMs installed (see screenshots)</p>
  
  <p><a href="https://i.stack.imgur.com/LeYYb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LeYYb.png" alt="SpringToolSuite splash screen"></a>
  <a href="https://i.stack.imgur.com/QSKHu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QSKHu.png" alt="Java SE 6 runtime legacy needed"></a></p>
  
  <p>And it seems both <code>Eclipse.app</code> and <code>SpringToolSuite4.app</code> require proper JDK installed traditionally, not using SDKMAN!</p>
  
  <p>I really don't want to install another JDK besides SDKMAN!</p>
  
  <p>Anyone got this to work? </p>
  
  <p>Thanks!</p>