title: Maven - Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
body: <p>I know this question has been posted a lot, but I still can't resolve my problem.</p>
  
  <p>So, I just downloaded a <code>bin</code> distribution from <a href="http://apache.mirrors.hoobly.com/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip" rel="nofollow">http://apache.mirrors.hoobly.com/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip</a></p>
  
  <p>after extracting the zip file, I moved it to <code>/opt/apache-maven-3.3.9</code></p>
  
  <p>Here's how my terminal look like when I run the commands:</p>
  
  <pre><code>xxx@xxx-VirtualBox:/opt/apache-maven-3.3.9/bin$ ls
  m2.conf  mvn  mvnDebug
  
  xxx@xxx-VirtualBox:/opt/apache-maven-3.3.9/bin$ ./mvn
  Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
  
  xxx@xxx-VirtualBox:/opt/apache-maven-3.3.9/bin$ java -version
  java version "1.7.0_80"
  Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
  Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
  
  xxx@xxx-VirtualBox:/opt/apache-maven-3.3.9/bin$ printenv JAVA_HOME 
  /usr/lib/jvm/java-7-oracle
  </code></pre>
  
  <p>Java is installed correctly, but I still can't run the <code>mvn</code> executable file</p>
  
  <p>The result of <code>ls -lR /opt/apache-maven-3.3.9</code> is as follows:</p>
  
  <pre><code>xxx@xxx-VirtualBox:/opt/apache-maven-3.3.9/bin$ ls -lR /opt/apache-maven-3.3.9/
  /opt/apache-maven-3.3.9/:
  total 16
  drwxr-xr-x 2 root root 4096 Jul 21 11:12 bin
  drwxr-xr-x 2 root root 4096 Jul 21 11:12 boot
  lrwxrwxrwx 1 root root   10 Dec  9  2015 conf -&gt; /etc/maven
  drwxr-xr-x 2 root root 4096 Jul 21 11:12 lib
  drwxr-xr-x 2 root root 4096 Jul 21 11:12 man
  
  /opt/apache-maven-3.3.9/bin:
  total 12
  lrwxrwxrwx 1 root root   18 Dec  9  2015 m2.conf -&gt; /etc/maven/m2.conf
  -rwxr-xr-x 1 root root 7383 Nov 19  2015 mvn
  -rwxr-xr-x 1 root root 1815 Nov 19  2015 mvnDebug
  
  /opt/apache-maven-3.3.9/boot:
  total 0
  lrwxrwxrwx 1 root root 34 Dec  9  2015 plexus-classworlds-2.x.jar -&gt; ../../java/plexus-classworlds2.jar
  
  /opt/apache-maven-3.3.9/lib:
  total 0
  lrwxrwxrwx 1 root root 26 Dec  9  2015 aopalliance.jar -&gt; ../../java/aopalliance.jar
  lrwxrwxrwx 1 root root 22 Dec  9  2015 cdi-api.jar -&gt; ../../java/cdi-api.jar
  lrwxrwxrwx 1 root root 26 Dec  9  2015 commons-cli.jar -&gt; ../../java/commons-cli.jar
  lrwxrwxrwx 1 root root 25 Dec  9  2015 commons-io.jar -&gt; ../../java/commons-io.jar
  lrwxrwxrwx 1 root root 28 Dec  9  2015 commons-lang3.jar -&gt; ../../java/commons-lang3.jar
  lrwxrwxrwx 1 root root 27 Dec  9  2015 commons-lang.jar -&gt; ../../java/commons-lang.jar
  lrwxrwxrwx 1 root root 33 Dec  9  2015 eclipse-aether-api.jar -&gt; ../../java/eclipse-aether-api.jar
  lrwxrwxrwx 1 root root 45 Dec  9  2015 eclipse-aether-connector-basic.jar -&gt; ../../java/eclipse-aether-connector-basic.jar
  lrwxrwxrwx 1 root root 34 Dec  9  2015 eclipse-aether-impl.jar -&gt; ../../java/eclipse-aether-impl.jar
  lrwxrwxrwx 1 root root 33 Dec  9  2015 eclipse-aether-spi.jar -&gt; ../../java/eclipse-aether-spi.jar
  lrwxrwxrwx 1 root root 45 Dec  9  2015 eclipse-aether-transport-wagon.jar -&gt; ../../java/eclipse-aether-transport-wagon.jar
  lrwxrwxrwx 1 root root 34 Dec  9  2015 eclipse-aether-util.jar -&gt; ../../java/eclipse-aether-util.jar
  lrwxrwxrwx 1 root root 20 Dec  9  2015 guava.jar -&gt; ../../java/guava.jar
  lrwxrwxrwx 1 root root 20 Dec  9  2015 guice.jar -&gt; ../../java/guice.jar
  lrwxrwxrwx 1 root root 38 Dec  9  2015 javax.inject.jar -&gt; ../../java/atinject-jsr330-tck-1.0.jar
  lrwxrwxrwx 1 root root 20 Dec  9  2015 jsoup.jar -&gt; ../../java/jsoup.jar
  lrwxrwxrwx 1 root root 37 Dec  9  2015 maven-aether-provider-3.x.jar -&gt; ../../java/maven3-aether-provider.jar
  lrwxrwxrwx 1 root root 30 Dec  9  2015 maven-artifact-3.x.jar -&gt; ../../java/maven3-artifact.jar
  lrwxrwxrwx 1 root root 37 Dec  9  2015 maven-builder-support-3.x.jar -&gt; ../../java/maven3-builder-support.jar
  lrwxrwxrwx 1 root root 28 Dec  9  2015 maven-compat-3.x.jar -&gt; ../../java/maven3-compat.jar
  lrwxrwxrwx 1 root root 26 Dec  9  2015 maven-core-3.x.jar -&gt; ../../java/maven3-core.jar
  lrwxrwxrwx 1 root root 30 Dec  9  2015 maven-embedder-3.x.jar -&gt; ../../java/maven3-embedder.jar
  lrwxrwxrwx 1 root root 27 Dec  9  2015 maven-model-3.x.jar -&gt; ../../java/maven3-model.jar
  lrwxrwxrwx 1 root root 35 Dec  9  2015 maven-model-builder-3.x.jar -&gt; ../../java/maven3-model-builder.jar
  lrwxrwxrwx 1 root root 32 Dec  9  2015 maven-plugin-api-3.x.jar -&gt; ../../java/maven3-plugin-api.jar
  lrwxrwxrwx 1 root root 41 Dec  9  2015 maven-repository-metadata-3.x.jar -&gt; ../../java/maven3-repository-metadata.jar
  lrwxrwxrwx 1 root root 30 Dec  9  2015 maven-settings-3.x.jar -&gt; ../../java/maven3-settings.jar
  lrwxrwxrwx 1 root root 38 Dec  9  2015 maven-settings-builder-3.x.jar -&gt; ../../java/maven3-settings-builder.jar
  lrwxrwxrwx 1 root root 28 Dec  9  2015 plexus-cipher.jar -&gt; ../../java/plexus-cipher.jar
  lrwxrwxrwx 1 root root 47 Dec  9  2015 plexus-component-annotations.jar -&gt; ../../java/plexus-component-annotations-1.5.jar
  lrwxrwxrwx 1 root root 35 Dec  9  2015 plexus-interpolation.jar -&gt; ../../java/plexus-interpolation.jar
  lrwxrwxrwx 1 root root 36 Dec  9  2015 plexus-sec-dispatcher.jar -&gt; ../../java/plexus-sec-dispatcher.jar
  lrwxrwxrwx 1 root root 28 Dec  9  2015 plexus-utils.jar -&gt; ../../java/plexus-utils2.jar
  lrwxrwxrwx 1 root root 26 Dec  9  2015 sisu-inject.jar -&gt; ../../java/sisu-inject.jar
  lrwxrwxrwx 1 root root 26 Dec  9  2015 sisu-plexus.jar -&gt; ../../java/sisu-plexus.jar
  lrwxrwxrwx 1 root root 24 Dec  9  2015 slf4j-api.jar -&gt; ../../java/slf4j-api.jar
  lrwxrwxrwx 1 root root 27 Dec  9  2015 slf4j-simple.jar -&gt; ../../java/slf4j-simple.jar
  lrwxrwxrwx 1 root root 29 Dec  9  2015 wagon-file.jar -&gt; ../../java/wagon-file-2.x.jar
  lrwxrwxrwx 1 root root 36 Dec  9  2015 wagon-http-shaded.jar -&gt; ../../java/wagon-http-shaded-2.x.jar
  lrwxrwxrwx 1 root root 36 Dec  9  2015 wagon-http-shared.jar -&gt; ../../java/wagon-http-shared-2.x.jar
  lrwxrwxrwx 1 root root 37 Dec  9  2015 wagon-provider-api.jar -&gt; ../../java/wagon-provider-api-2.x.jar
  
  /opt/apache-maven-3.3.9/man:
  total 8
  -rw-r--r-- 1 root root 1229 Nov 19  2015 mvn.1.gz
  -rw-r--r-- 1 root root 1240 Nov 19  2015 mvnDebug.1.gz
  </code></pre>