eclipse3.2.1 + junit4

651 ワード

環境:gentoo,eclipse-3.2.1
eclipseでTestCase(junit-3.8.1.1.jarを使用)を実行すると、次のエラーが発生します.
参照
Cannot find 'org.junit.Test' on project build path. JUnit 4 tests can only be run if JUnit 4 is on the build path.
junit-4.5.jarを置き換えると、結果は不幸です.
参照
An internal error occurred during: "Launching".
振り回されて、何気なく解決方法を発見しました.
eclipse-sdk-3.3.1.1-r 2をインストールし、copy eclipse-3.3/pluginsディレクトリのorg.eclipse.jdt.junit 4.runtime*.jarからeclipse-3.2/plugins/

cp /usr/lib/eclipse-3.3/plugins/org.eclipse.jdt.junit4.runtime_1.0.100.v20070606-0010.jar 
/usr/lib/eclipse-3.2/plugins

原理不明