When I run Spring Tools Suite 4 on my Mac, I get the following error message and Spring Tools Suite (STS) does not start.
Alert: Failed to create the Java Virtual Machine
I will try to solve this.
Add the following to SpringToolsSuite.ini.
place
$ vi /Applications/SpringToolSuite4.app/Contents/Eclipse/SpringToolSuite4.ini
SpringToolsSuite.Added to ini
-vm
/Library/Java/JavaVirtualMachines/adoptopenjdk-14.jdk/Contents/Home/bin/java
For eclipse it will be eclipse.ini
Move to Java Mac folder
Move to Java Mac folder
$ cd /Library/Java/JavaVirtualMachines/adoptopenjdk-14.jdk/Contents/MacOS/
Delete libjli.dylib in the MacOS folder
libjli.Remove dylib
$ sudo rm /Library/Java/JavaVirtualMachines/adoptopenjdk-14.jdk/Contents/MacOS/libjli.dylib"
Paste the Java Lib libjli.dylib symbolic link into the Java MacOS folder
libjli.Paste the dylib Symbolic Link
$ sudo ln -s /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home/lib/libjli.dylib libjli.dylib
https://www.eclipse.org/forums/index.php?t=msg&th=1102885&goto=1823113&#msg_1823113.
Recommended Posts