Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher

Tags:

maven-2

maven

I have installed a latest maven-3.2.5 on Linux Mint Throgh CLi The installation details are as follows:

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
export M2_HOME=/home/mani/apache-maven-3.2.5/bin/

In the command it shows it like this:

mani@manithullimilli ~/apache-maven-3.2.5/bin $ ./mvn version

Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher mani@manithullimilli ~/apache-maven-3.2.5/bin $

I Have Setted Path Also

like image 563
Mani Mani Avatar asked Jun 01 '15 05:06

Mani Mani


1 Answers

You mentioned M2_HOME environment variable incorrectly.M2_HOME environment variable should be "/home/mani/apache-maven-3.2.5"

export M2_HOME=/home/mani/apache-maven-3.2.5

and Add the $M2_HOME/bin directory to your path.

like image 180
Bacteria Avatar answered Nov 15 '22 07:11

Bacteria