Lombok with Spring Tool Suite 4

Joaquín L. Robles picture Joaquín L. Robles · Oct 12, 2018 · Viewed 38.1k times · Source

I've recently installed the new Spring Tool Suite 4 in macOS High Sierra but when I tried to run Lombok's installation it wouldn't find my STS installation,

I followed this steps for manual installation (adding -javaagent to the ini file) but with no luck: https://www.edvpfau.de/sts-spring-tool-suite-4-mit-lombok/.

Any idea?

Answer

Manuel Jordan picture Manuel Jordan · Oct 12, 2018

I did install Lombok in Spring Tool Suite 4 just some days ago for Mac and Windows. And none problems.

One:

Execute java -jar lombok.jar

  • Note: normally or by default, it does not find the installer, it is the common scenario in my experience.

Two:

Press the Specify Location button.

  • Note: for Mac, go to the Contents directory within the .app file and find the STS.ini file, it could be SpringToolSuite4.ini too.

Conclusion: therefore for any OS, the goal is find the unique file with the .ini extension

Normally I do this with the IDE closed.