[JAVA] Run STS4 on Mac

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.

environment

Method

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

reference

https://www.eclipse.org/forums/index.php?t=msg&th=1102885&goto=1823113&#msg_1823113.

Recommended Posts

Run STS4 on Mac
Steps to run docker on Mac
Installed on Lombok Mac (using STS)
Run Ubuntu + ROS with Docker on Mac
Install gradle on mac
Run mysql image on M1 MAC (Apple Silicon)
Install Java on Mac
Test run on rails
Run PostgreSQL on Java
Run Edge (Chromium version) on Mac with Selenium
Install openjdk11 on mac
Run Processing on Ant
Run tiscamera on Ubuntu 18.04
Install OpenJDK 8 on mac
Run phpunit on Docker
Run VS Code on Docker
Run openvpn on Docker (windows)
Run chromium-mir-kiosk on Ubuntu Core
Run java applet on ubuntu
Run Eclipse CDT on Ubuntu
Install tomcat + eclipse on mac
Try Spring Boot on Mac
Run mruby / c on PSoC 5
Run Java EE applications on CICS
Run SSE (Server-Sent-Event) samples on docker
Run puppeteer-core on Heroku (Docker edition)
Try using Redmine on Mac docker
Run React on a Docker container
Run the AWS CLI on Docker
How to run JavaFX on Docker
Run GUI application on Docker container
Use Docker on your M1 Mac
Run PureScript on a Docker container
Set JAVA_HOME correctly on Mac OS 10.12
Run tomcat shell script on java8
Use completion in Eclipse on mac
Run C binaries on AWS Lambda
Install Java development environment on Mac
Run GPU-required batch processing on AWS
Steps to run local development of ASP.NET Core on Mac with docker-compose
How to check Java installed on Mac
When Gradle build stops when importing on Mac
STS installation and Japanese localization on Windows 10
Spring Boot environment construction memo on mac
Customize OpenFOAM v8 Docker Image on Mac
Run NordVPN on Docker (Windows) Ubuntu container
Run Embulk on Docker to convert files
Ruby on Rails installation method [Mac edition]
Java development environment construction memo on Mac
How to install Eclipse (Photon) on Mac
I can't install rails on my mac
How to switch Java versions on Mac
Create stylish ER diagrams on Mac (Oracle)
Build a Java development environment on Mac
Until you run CuPy (v11.1) on Ubuntu 20.04
Let's run Servlet on Amazon Corretto now
Hello World on Mac VS Code Java
Run SystemSpec (RSpec) and Rubocop on CircleCI
Run jooby's Eclipse development environment on Gradle
Build Apache + Tomcat + Pebble locally on Mac
Build a JMeter environment on your Mac