pranav
pranav

Reputation: 431

Lombok not working on Eclipse Mars on Mac 10.11.3

I tried all the solutions given here on Stackoverflow regarding the same but it still won't work. Eclipse still shows compile errors on getter/setters. Steps i followed.

  1. Download lombok.jar.
  2. Open jar by double click and specify the location of eclipse.ini file as it was not accepting Eclipse.app.
  3. Got confirmation popup that lombok has been installed in IDE.
  4. Restarted/Open eclipse, the project still had compile errors for setters/getters.

My eclipse.ini file entries are as below:

-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin
-vmargs
........
..........
-javaagent:../Eclipse/lombok.jar

Location of eclipse file is as below:

/Users/vishal/jee-mars/Eclipse.app/Contents/Eclipse/eclipse.ini

Is there anything I am missing? Thanks!!

Upvotes: 1

Views: 7073

Answers (3)

Mamatha N
Mamatha N

Reputation: 1

I tried a lot of possible methods , Downloading lombak jar from https://projectlombok.org/ helped other than downloading from Maven . and follow the above suggested installation methods .

Upvotes: 0

bpedroso
bpedroso

Reputation: 4897

Execute on terminal

java -jar lombok.jar

After that, a window will open and you can follow the process to configure your lombok.

Upvotes: -1

Stéphane GRILLON
Stéphane GRILLON

Reputation: 11862

Solution for Macbook:

Step 1 edit /Applications/Eclipse.app/Contents/Eclipse/eclipse.ini with

-Xbootclasspath/a:lombok.jar
-javaagent:lombok.jar

just after

-vmargs

Step 2 paste lombok.jar to /Applications/Eclipse.app/Contents/MacOS/

Step 3 After Eclipse restart: project > clean

Upvotes: 10

Related Questions