得到下一個與Maven使用控制檯錯誤:MVN全新安裝+ java.lang.NoClassDefFoundError
d:\projects.perforce\FOTradeCapture\branches\evb-dev>mvn clean install Exception in thread "main" java.lang.NoClassDefFoundError: [15:27:13] Caused by: java.lang.ClassNotFoundException: [15:27:13] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: [15:27:13]. Program will exit.
Maven的成功安裝和一段時間的工作。
感謝您的意見。
================================================ ==============================
aditional的信息:
d:\projects.perforce\FOTradeCapture\branches\evb-dev>mvn -version Apache Maven 3.0.1 (r1038046; 2010-11-23 12:58:32+0200) Java version: 1.6.0_23 Java home: c:\ProgramFiles\Java\jdk1.6.0_23\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
mvn -version返回什麼? – Raghuram 2011-02-01 11:28:32