I have exactly the same Exception popping up and my environment variables are
correctly set:

[EMAIL PROTECTED]:~# mvn --version
Exception in thread "main" java.lang.NoClassDefFoundError:
org/codehaus/classworlds/Launcher
[EMAIL PROTECTED]:~# echo $M2_HOME
/usr/local/lib/maven-2.0.4
[EMAIL PROTECTED]:~# echo $JAVA_HOME
/usr/lib/jvm/java-1.5.0-sun

What else could it be?


Neeraj Bisht wrote:
> 
> you have not set java_home or maven home
> 
> On 12/6/06, Dheeraj Agrawal <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I just downloaded the bin tar ball for maven.
>> Extracted it and now trying to run it.
>> But I am getting the following error.
>>
>> [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/codehaus/classworlds/Launcher
>>
>>
>> I had installed this earlier also but never got such an error.
>>
>> Thanks
>> dheeraj
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8380081
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to