无法使Project Lombok在Eclipse上运行 [英] Cannot make Project Lombok work on Eclipse
问题描述
我在这里遵循了教程 http://projectlombok.org/
I have followed the tutorial here http://projectlombok.org/
但是添加了import和@Data
之后什么也没发生.
but after adding import and @Data
nothing happens.
它可以在日蚀日光灯上工作吗?
Does it work on eclipse helios ?
推荐答案
您添加了
-vmargs
...
-javaagent:lombok.jar
-Xbootclasspath/a:lombok.jar
访问您的 eclipse.ini ?
因为有(并且已经将lombok.jar添加到了项目所使用的库中),它在Eclipse Helios上就可以正常工作:
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:
Ian Tegebo 在
简单的重新启动"不足以拾取已更改的vmargs: a simple "restart" was not sufficient to pick up the changed vmargs:
chrisjleu 在
如果碰巧正在运行自定义的Eclipse Helios(3.6+)发行版,则可能必须在两个 If you happen to be running a customized Eclipse Helios (3.6+) distribution then you may have to use the full path to
这篇关于无法使Project Lombok在Eclipse上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
我需要明确退出,然后重新开始.
I needed to explicitly exit and then start again.
vm
参数中都使用lombok.jar
的完整路径.
有关更多详细信息,请参见提交b47e87f .
lombok.jar
in both the vm
arguments.
See commit b47e87f for more details.boolean fullPathRequired = IdeFinder.getOS() == EclipseFinder.OS.UNIX || System.getProperty("lombok.installer.fullpath") != null;