Changing the Java Version for Anypoint Studio
I'll be real quick on this one, because is silly.
You can bounce around a great deal everywhere from jenv and how it does not change the system version, we can bounce around a few solutions from the brew side before you realize that you need the OpenJDK that maven installs. Lets avoid all of that now.
Just go to the Applications folder, look for your any point studio 6 and go to contents for that package, enter the contents folder then the eclipse folder and open the Anypoint.ini file.
Look for the -vmargs entry and just before it open a new line and enter -vm. In the very next line you must enter the full path to the java 8 version. Something like this:
/Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/bin/java
The whole file should look something like this:
-startup ../Eclipse/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar --launcher.library ../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.551.v20171108-1834 -vm /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/bin/java -vmargs --add-modules=ALL-SYSTEM -Xms512m -Xmx1024m -XX:MaxPermSize=512m [email protected]/AnypointStudio/workspace -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -Dequinox.resolver.revision.batch.size=1 -XX:ErrorFile=./studio_crash_report.log -Djdk.http.auth.tunneling.disabledSchemes= -Dfile.encoding=UTF-8 -Djava.awt.headless=true -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts