If you prefer using SDKMAN!
for having Java installed on your Mac and recieve the following message:
you need to install the legacy Java SE 6 runtime
You should open /Applications/AnypointStudio.app/Contents/Eclipse/AnypointStudio.ini
and explicitly add path to your JVM using -vm
option, i.e.:
-vm
/Users/user/.sdkman/candidates/java/8.0.181-zulu/bin/java