I have followed the tutorial here http://projectlombok.org/
but after adding import and @Data
nothing happens.
Does it work on eclipse helios ?
I have followed the tutorial here http://projectlombok.org/
but after adding import and @Data
nothing happens.
Does it work on eclipse helios ?
Did you add
-vmargs
...
-javaagent:lombok.jar
-Xbootclasspath/a:lombok.jar
to your eclipse.ini?
Because if you have (and if you have added the lombok.jar to the libraries used by your project), it works just fine with Eclipse Helios:
You not only have to add lombok.jar to the libraries, but also install it by either double-clicking the lombok jar, or from the command line run java -jar lombok.jar
. That will show you a nice installer screen. Select your Eclipse installation and install.
Afterwards, you can check if the installer has correctly modified your eclipse.ini file as VonC described in his answer. If you are starting Eclipse using a shortcut, make sure that either there are no command line arguments filled in, or manually add -javaagent:lombok.jar
-Xbootclasspath/a:lombok.jar
somewhere after -vmargs
.