Error: could not find or load the main class org.codehaus.plexus.classworlds.launcher.Launcher on Windows 10

I use windows 10 and I set the path as a mention in the instructions

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

When I run mvn -version, I get an 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 
+5
source share
1 answer

I had the same problem as the zip archive source files from maven.apache website. I decided to use the zip archive binaries.

+9
source

Source: https://habr.com/ru/post/1265543/


All Articles