Maven Error: Could Not Find or Load Main Class Org.Codehaus.Plexus.Classworlds.Launcher.Launcher

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

Please remove M2_HOME as environment variable, it is already set by
the mvn script. The only things you need to do is: add
apache-maven-3.x.x/bin to your path, set JAVA_HOME as environment
variable. So no need to add %JAVA_HOME%/bin to your path

Try to run mvn -v from /Library/Maven-3.3.3/bin/ folder first to
confirm the installation is correct. Try to run mvn with xtrace info
(tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html) and verify
the commandline built up by Maven. I assume you get an unexpected
classpath argument value.

Maven error: Could not find or load main class And Unable to Edit System Variables

Solution: I just uninstalled chocolatey by running command prompt as an administrator, then reinstalled it. For some reason this worked - no idea as to why but that was the solution to the error without having to change system variables.

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

I put maven directory in Program files folder and updated path and it started working!

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

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.



Related Topics



Leave a reply



Submit