Page 1 of 1

"Could not find the main class: org.codehaus.classworlds.La"

Posted: Tue Jul 02, 2013 11:54 pm
by kerler
Dear Sir,

On win7 64bit, after finishing the steps in http://docs.broadleafcommerce.org/curre ... arted.html for DemoSite-3.0.0-GA, when try to launch jetty-demo in eclipse juno, it report below error. But in cmd line window, mvn -version correctly show the mvn info. I did above test with using both maven 2.2.1 and 3.0.5, the problem is the same.

Do I need further configuration on maven plugin in eclipse?

Buildfile: D:\tmpDataRoot\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\site\build.xml
start-db:
[echo] Starting Data Base...
jetty-demo:
[artifact:mvn] Listening for transport dt_socket at address: 8000java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
[artifact:mvn] Caused by: java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher
[artifact:mvn] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[artifact:mvn] at java.security.AccessController.doPrivileged(Native Method)
[artifact:mvn] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[artifact:mvn] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[artifact:mvn] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[artifact:mvn] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[artifact:mvn] Could not find the main class: org.codehaus.classworlds.Launcher. Program will exit.
[artifact:mvn] Java Result: 1
BUILD SUCCESSFUL

Thanks

Re: "Could not find the main class: org.codehaus.classworlds.La"

Posted: Wed Jul 03, 2013 12:07 am
by kerler
By editing "maven.home=/usr/share/maven" in DemoSite\build.properties to point to the right location of maven, the problem is solved.

Re: "Could not find the main class: org.codehaus.classworlds.La"

Posted: Wed Jul 03, 2013 4:18 pm
by bpolster
Thanks for reporting the problem and solution.