Lombok not working in eclipse mars

Vivek Goel picture Vivek Goel · Jul 8, 2015 · Viewed 40.9k times · Source

I have eclipse version: "Mars Release (4.5.0)"

I have downloaded latest lombok jar from: https://projectlombok.org/download.html

I executed:

java -jar lombok.jar install $eclipseDir

After this I can see lombok.jar in my eclipse directory and eclipse.ini.

Restarted eclipse with: eclipse -clean

But still lombok is not working for me.

Answer

Pawel picture Pawel · Jul 8, 2015

I had the same problem. What helped was:

  1. Restart Eclipse
  2. Select from top menu Project -> Clean...
  3. Clean all projects that use Lombok

If it will not help, try again from point 1. (I know it sounds stupid but it worked on my PC on second try.)

Also, I'm using Lombok version 1.16.4 (and Eclipse Mars of course)

BTW: Make sure that you have lombok.jar in the eclipse directory.