Building with Lombok's @Slf4j and Eclipse: Cannot find symbol log

bashwin picture bashwin · May 18, 2013 · Viewed 44.6k times · Source

I have the lombok plugin in Eclipse and enabled annotation processing in Eclipse under java compiler, but still it is unable to recognize the log statements when I use @Slf4j annotation.

Do we have to make any other settings?

Answer

Roel Spilker picture Roel Spilker · May 24, 2013

You also have to install Lombok into Eclipse.

See also this answer on how to do that or check if Lombok is installed correctly.

Full Disclosure: I am one of the Project Lombok developers.