最近、Lombok (バージョン 0.11.0) を Eclipse Indigo インストールにインストールしましたが、Eclipse のすべてのプロジェクトが実行とデバッグの両方から起動しなくなりました。
プロジェクトを実行しようとすると、次のエラーが発生します
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 でプロジェクトを正常に実行できます。