Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The application "STS" can't be opened

The first installation of STS on my Mac works fine, and this error pops up after restarting the computer. The problem with stS4-4.13.1 installed is still the same. Attempting to specify the jdk version in the ~/Application/STS/Info.list file also does not work. PS:MacOs Monterey Below is the error message, please help me enter image description here

like image 751
Edgar Avatar asked Feb 16 '26 03:02

Edgar


2 Answers

You are most likely facing a long standing issue in which Eclipse modifies its package contents after being opened. This in turn breaks its own signature that is generated by the apple build system when the package is originally created. And in the end, this will prevent it from being opened next time, since macOS thinks the package was tampered with...

The solution is to re-sign your application:

sudo codesign --force --sign - /Applications/SpringToolSuite4.app

If you want to you can first check if macos is indeed thinking that your package was tampered with this command:

codesign -v -vvv --deep /Applications/SpringToolSuite4.app

If it returns something in the lines of:

/Applications/SpringToolSuite4.app: invalid Info.plist (plist or signature have been modified)

then this is definitely the case.

NOTE: If you have Lombok installed, you have to re-sign it too before signing STS app:

sudo codesign --force --sign - /Applications/SpringToolSuite4.app/Contents/Eclipse/lombok.jar

like image 94
vnagy Avatar answered Feb 20 '26 19:02

vnagy


Also if you have Lombok installed you have to sign it too before signing the STS app:

sudo codesign --force --sign -  /Applications/SpringToolSuite4.app/Contents/Eclipse/lombok.jar

Afterward applied vnagy solution

like image 38
b09d6n Avatar answered Feb 20 '26 18:02

b09d6n



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!