top of page

Install and Configure Lombok in Eclipse on Mac

  • https://nawa
  • May 15, 2019
  • 1 min read

https://nawaman.net/blog/2017-11-05

  • Download lombok.jar Lombok comes in a jar file which can be downloaded from here.

  • Put the jar file for Eclipse The lombok.jar must be placed where Eclipse is expected. In Mac, Eclipse comes in an app file called Eclipse.app. Depending on how it is installed but it is likely be in the Application folder. To put the jar file in the right place, the file must be put in Eclipse.app/Contents/MacOS folder which is in side the Eclipse.app. To to that

  1. Right click on Eclipse.app (seen as just Eclipse)

  2. Select "Show Package Contents"

  3. Browse to "Contents" then "MacOS"

  4. Drop the jar file there.

  • Tell Eclipse to load lombok For Lombok to work, it has to be loaded as an agent. This can be done by adding add '-javaagent:lombok.jar' to the end of Eclipse.app/Contents/Eclipse/eclipse.ini. See the above stop on how to get to the inner contents of Eclipse.app.

  • Run Eclipse Lombok will be loaded at the time Eclipse starts so if it is running, it has to be restarted.

  • Enable Annotaion Processing for the project. Lombok utilizes many techinques but the most important trick involves annotation processing. Thus, we need to tell Eclipse to enable annotation processing.


 
 
 

コメント


© 2023 by BI World. Proudly created with Wix.com

  • Facebook Basic Black
  • Twitter Basic Black
  • YouTube Basic Black
bottom of page