Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » NoClassDefFoundError: org/codehaus/classworlds/Launcher(Occurs after I changed from Maven 3 to maven 2)
NoClassDefFoundError: org/codehaus/classworlds/Launcher [message #866175] Mon, 30 April 2012 15:34
Henrique Ordine is currently offline Henrique Ordine
Messages: 2
Registered: April 2012
Junior Member
Hi everyone,

I was using Maven 3 from Eclipse, by configuring a External Tools Configuration, and after I changed to Maven 2 I get the following error when running Maven from Eclipse:

/usr/bin/mvn: line 53: uname: command not found
/usr/bin/mvn: line 78: ls: command not found
/usr/bin/mvn: line 79: expr: command not found
/usr/bin/mvn: line 80: expr: command not found
/usr/bin/mvn: line 83: dirname: command not found
/usr/bin/mvn: line 89: dirname: command not found
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher


In my Eclipse I added a String Substitution which points to my /usr/bin/mvn, and in my External Tools Configuration I select that String Substitution as a variable to execute a Maven goal.

I've added an M2_REPO to my Classpath Variables and I've run the following command:
mvn -Declipse.workspace=/Users/hordine/.m2/repository eclipse:add-maven-repo

I use Mac OS X Leopard.

Could anybody give me a hand?

Thanks in advance.

Henrique Ordine
Previous Topic:Error: IWAB0125E Select a node
Next Topic:Replaceing alle fields with getter and setter?
Goto Forum:
  


Current Time: Tue Jul 29 02:58:21 EDT 2014

Powered by FUDForum. Page generated in 0.01478 seconds