Setup Lombok With STS/Eclipse Based IDE

This article show you how to setup lombok with your STS/eclipse based IDE.

1, First time work Lombok, you will wonder why it doesn’t generate getter and setter like what video shown.

 

Install Lombok

  1. Copy the lombok.jar to your STS installation path, Contents > MacOS > lombok.jar (I’ve remove the version).
  2. Run the command and update your STS path.
    java -jar [your_lombok.jar]
    
    
  3. From the window browse to your STS.ini files.

  4.  Update the STS.ini with -javaagent:lombok.jar

  5. Finally you NEED to close the STS/eclipse and start again. (Restart doesn’t take effect)
  6. Once you’ve done close and start STS. You’ll see the getter and setter is autogenerated.

Setup Lombok With STS/Eclipse Based IDE

7 thoughts on “Setup Lombok With STS/Eclipse Based IDE

  • September 10, 2017 at 12:47 pm
    Permalink

    Close and start again that’s why. Thanks.

    Reply
    • June 26, 2018 at 9:39 pm
      Permalink

      Finally you NEED to close the STS/eclipse and start again. (Restart doesn’t take effect)
      This statement really helped. It unblocked my task . Thank you

      Reply
  • February 27, 2019 at 4:46 pm
    Permalink

    Besides the above steps, I went to sts-bundle\sts-3.9.7.RELEASE and did sts clean , that the properties got enabled.

    Reply
  • February 17, 2020 at 3:31 pm
    Permalink

    Thanks for this tutorial, in addition I execute the.jar file and lombok knows where are the eclipse available.

    Reply
  • December 1, 2020 at 8:53 am
    Permalink

    Finally you NEED to close the STS and start again. (Restart doesn’t take effect)
    This statement helped me to solve my problem. Thank you.
    Just to add on this point, Eclipse restart will do the job but for STS restart won’t work. You need to close and start STST again. Thanks again.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.