Eclipse Indigo在安装Lombok后没有运行项目

时间:2012-10-19 10:40:15

标签: java eclipse-indigo lombok

我最近在我的Eclipse Indigo安装中安装了Lombok(版本0.11.0),现在Eclipse中的所有项目都不再从Run和Debug启动。

当我尝试运行项目

时,我得到的错误如下
Usage: javaw [-options] class [args...]
       (to execute a class)
or  javaw [-options] -jar jarfile [args...]
       (to execute a jar file)

where options include:
-client   to select the "client" VM
-server   to select the "server" VM
-hotspot      is a synonym for the "client" VM  [deprecated]
              The default VM is client.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
              A ; separated list of directories, JAR archives,
              and ZIP archives to search for class files.
-D<name>=<value>
              set a system property
-verbose[:class|gc|jni]
              enable verbose output
-version      print product version and exit
-version:<value>
              require the specified version to run
-showversion  print product version and continue
-jre-restrict-search | -jre-no-restrict-search
              include/exclude user private JREs in the version search
-? -help      print this help message
-X            print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
              enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
              disable assertions
-esa | -enablesystemassertions
              enable system assertions
-dsa | -disablesystemassertions
              disable system assertions
-agentlib:<libname>[=<options>]
              load native agent library <libname>, e.g. -agentlib:hprof
                see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
              load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
              load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
              show splash screen with specified image

这告诉我,它找不到我正在运行的项目的主类文件,但它在运行和调试配置中正确引用项目,文件在项目中,我已经检查了/ bin文件夹确保班级在那里(它是)。

我能想到的唯一可能导致问题的是,在Lombok安装之后,/ bin文件夹中没有包含正确的内容,而是在那里构建了我的JUnit测试用例。

我已经多次清理了整个项目集并卸载/重新安装了Lombok。我重置了我的电脑,仍然没有快乐。 Eclipse使用jdk 1.6.30运行。

更新:如果项目使用Lombok引用另一个项目或该项目直接使用Lombok,则问题似乎在于。删除对项目的Lombok引用允许项目在Eclipse中正常执行。

0 个答案:

没有答案