Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269798 - dev-java/maven-bin-2.1.0 throws java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
Summary: dev-java/maven-bin-2.1.0 throws java.lang.NoClassDefFoundError: org/codehaus/...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-14 08:35 UTC by Alexander Semenov
Modified: 2009-06-13 20:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Semenov 2009-05-14 08:35:50 UTC
dev-java/maven-bin-2.1.0 cannot start due to missing class. Emerging dev-java/classworlds doesn't help.

Reproducible: Always

Steps to Reproduce:
Just run mvn.

Actual Results:  
Exception is thrown:

~$ mvn
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: org.codehaus.classworlds.Launcher.  Program will exit.

Expected Results:  
Maven should run gracefully.

Reproduced with sun-jdk 5 and 6.
Comment 1 Alexander Semenov 2009-05-14 08:44:16 UTC
Setting correct M2_HOME env variable resolves the problem.
Comment 2 Alistair Bush (RETIRED) gentoo-dev 2009-06-13 01:18:22 UTC
could I have to result of this

ls -al /usr/bin/mvn
Comment 3 Alexander Semenov 2009-06-13 20:53:09 UTC
M2_HOME env variable was set not correctly.