Java Eclipse Indigo在安装Lombok后未运行项目
我最近在EclipseIndigo安装中安装了Lombok(版本0.11.0),现在Eclipse中的所有项目都不再启动,无论是从运行还是调试 当我尝试运行一个项目时,我得到的错误如下Java Eclipse Indigo在安装Lombok后未运行项目,java,eclipse-indigo,lombok,Java,Eclipse Indigo,Lombok,我最近在EclipseIndigo安装中安装了Lombok(版本0.11.0),现在Eclipse中的所有项目都不再启动,无论是从运行还是调试 当我尝试运行一个项目时,我得到的错误如下 Usage: javaw [-options] class [args...] (to execute a class) or javaw [-options] -jar jarfile [args...] (to execute a jar file) where options
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
用法:javaw[-options]类[args…]
(执行一个类)
或javaw[-options]-jar-jarfile[args…]
(执行jar文件)
其中包括:
-客户端选择“客户端”虚拟机
-选择“服务器”虚拟机的服务器
-hotspot是“客户端”VM的同义词[已弃用]
默认VM是客户端。
-cp
-类路径
A.单独的目录列表、JAR归档、,
和压缩档案以搜索类文件。
-D=
设置系统属性
-详细[:类| gc | jni]
启用详细输出
-版本打印产品版本并退出
-版本:
需要指定的版本才能运行
-showversion打印产品版本并继续
-jre限制搜索|-jre不限制搜索
在版本搜索中包括/排除用户专用JRE
-? -帮助打印此帮助消息
-关于非标准选项的X打印帮助
-ea[:…|:]
-启用评估[:…|:]
启用断言
-da[:…;:]
-取消分配[:…|:]
禁用断言
-esa |-启用系统断言
启用系统断言
-dsa |-禁用系统断言
禁用系统断言
-agentlib:[=]
加载本机代理库,例如-agentlib:hprof
另请参见-agentlib:jdwp=help和-agentlib:hprof=help
-代理路径:[=]
按完整路径名加载本机代理库
-javaagent:[=]
加载Java编程语言代理,请参阅Java.lang.instrument
-飞溅:
用指定的图像显示启动屏幕
这对我来说意味着它找不到我正在运行的项目的主类文件,但它在运行和调试配置中正确地引用了该项目,该文件在项目中,我已经检查了/bin文件夹,以确保该类在其中(它在那里)
我能想到的唯一一件可能会或可能不会导致问题的事情是,在Lombok安装之后,/bin文件夹没有包含正确的内容,而是在那里构建了我的JUnit测试用例
我已经多次清理了整个项目集,并卸载/重新安装了Lombok。我重置了电脑,但仍然没有乐趣。Eclipse使用JDK1.6.30运行
更新:问题似乎在于项目是否引用了另一个使用Lombok的项目,或者该项目是否直接使用Lombok。删除对项目的Lombok引用允许项目在Eclipse中正常执行 看起来java得到了错误的参数,而不是缺少的参数或不存在的主类。这很奇怪,因为龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙目龙;它只在编译时需要。嗯,好的。我将检查Eclipse用于启动的参数。