JAVA 11 install(JDK)
From Homebrew
download from: JAVA install using homebrew to control multi-version
From official website
download from: https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
Git Install
From Homebrew
write on terminal: brew install git
From official website
https://git-scm.com/download/mac
check version
git --version
Springboot install
From homebrew
Cleanup and upgrade before set up
brew upgrade
brew cleanup
install STS4
brew cask install springtoolsuite
From official website
Go to website: https://spring.io/tools
download: MacOs version for eclipse
Configure JVM version: SpringToolSuite4.ini
open using editor(ex. vscode)
/Applications/SpringToolSuite4.app/Contents/Eclipse/SpringToolSuite4.ini
Java11 version error
When face the error message like failed to create the java virtual machine to run STS4
if use java version 11,
install java 8
2. please attach this code which is java8 path on the top inside SpringToolSuite4.ini
-vm /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin
Heap memory config
please edit max Heap memory as a -Xmx2048m
on SpringToolSuite4.ini
Example SpringToolSuite4.ini
-vm /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin -startup ../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar --launcher.library ../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1100.v20190907-0426 -product org.springframework.boot.ide.branding.sts4 --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.8 -Xms256m -Xmx2048m -XX:+UseG1GC -XX:+UseStringDeduplication --add-modules=ALL-SYSTEM -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -Xdock:icon=../Resources/sts4.icns
Project Setting
Set up workspace path