I have so many problems with installing apache maven. I have tried lot of instructions from youtube and from StackOverflow as well but none of these solutions is the right one. So in system variables I have the following
JAVA_HOME
C:\Program Files\Java\jdk1.8.0_111
M2
%M2_HOME%\bin
M2_HOME
C:\Program Files\Apache Software Foundation\apache-maven-3.3.9
Path
%M2%
If I type in command line javac
it's working fine, but when I type mvn --version
I have an error
"Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher"
Any suggestions? Thank you!