In your eclipse.ini, add the following section
-vmargs
...
-javaagent:lombok.jar
-Xbootclasspath/a:lombok.jar
It can solve your issue.
Resource Link: https://stackoverflow.com/a/42751271/2293534
Antoniolazaro has given another solution for Eclipse Neon issue on MacOS
When I put the complete path, it works on Mac Os.
-javaagent:/Applications/Eclipse.app/Contents/Eclipse/lombok.jar
Resource Link:
And the lombok project owner rzwitserloot has given 3 suggestions for checking
- Can you give us the complete path, from root, of your eclipse install? Starting with 1.16.14, the installer should still find eclipse even with the funky paths that the OOM installer comes up with. I have no idea why the installer isn't finding your eclipse automatically, here. I can't reproduce this on my mac.
- The lombok uninstaller has the same
'find eclipses'
capability as the installer.Mac doesn't have a registry and we aren't going to dump a bunch of crud in your homedir just to keep track of where we installed your lombok;
we like it that way: No cruft. So, that part (that the uninstaller can't find a custom-install location and requires you to again specify it) is not a bug. - You still have to add
lombok.jar
to your project as a dependency same as any other third party dependency (something like guava, for example). It's not clear from your problem description if you actually did that.
No comments:
Post a Comment