'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.
- Download lombok.jar.
- Open jar by double click and specify the location of eclipse.ini file as it was not accepting Eclipse.app.
- Got confirmation popup that lombok has been installed in IDE.
- 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!!
Solution 1:[1]
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
Solution 2:[2]
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 .
Solution 3:[3]
Execute on terminal
java -jar lombok.jar
After that, a window will open and you can follow the process to configure your lombok.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Simeon Leyzerzon |
Solution 2 | Mamatha N |
Solution 3 |