Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
maven error could not find or load main class org codehaus plexus classworlds l using -'java,windows,maven'
maven error could not find or load main class org codehaus plexus classworlds l ¬†using -'java,windows,maven'
I have installed a latest maven-3.0.4 on Windows 7:
The installation details are as follows:
Installation Path : ¬†
Environment Variables are: ¬†
M2_HOME C:\apache-maven-3.0.4\apache-maven\src ¬†
JAVA_HOME C:\Program Files\Java\jdk-1.7.0_04 ¬†
Path variables added are: ¬†
In the command window it shows it like this: ¬†
C:\>java -version ¬†
java version "1.7.0_04" ¬†
Java(TM) SE Runtime Environment (build 1.7.0_04-b22) ¬†
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing) ¬†
C:\>mvn -version ¬†
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher ¬†
This is the only version on maven installed on my PC and the solution given on many blogs referring to the deletion of the previous M2_HOME environment variable is not valid.
I have read and tried all the solutions given at blogs such as :
oracle blog, ¬†
stackoverflow question, ¬†
another stack question, ¬†
some blog, ¬†
but still not able to get to it. What I might be missing in this whole thing? Thanks in advance.
Sep 7, 2015
to add a comment.
Related Hot Questions
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please