Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am using windows 10 and i have set the path as mention in the instruction

  • Set M2_HOME (E:\softwares\apache-maven-3.3.9)
  • Set M2 (%M2_HOME%\bin)
  • Set system variable path (%M2_HOME%\bin)

When i run mvn --version i am getting error

    C:\Users\zafaque>echo %M2_HOME%
E:\softwares\apache-maven-3.3.9

C:\Users\zafaque>mvn --version
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
like image 478
Zahid Afaque Avatar asked Mar 16 '17 10:03

Zahid Afaque


1 Answers

I had the same issue using the source zip archive files from the maven.apache website. I solved using the Binary zip archive files.

like image 60
Patricia Avatar answered Oct 05 '22 13:10

Patricia