title: New Maven install: mvn -version java.lang.ClassNotFoundException
body: <p>So I've installed maven with the following details:</p>
  
  <p>Install path: </p>
  
  <pre><code>C:\Program Files\Apache Software Foundation\apache-maven-3.0.3
  </code></pre>
  
  <p>Env vars:</p>
  
  <pre><code>JAVA_HOME C:\Progra~1\Java\jdk1.6.0_25
  M2_HOME C:\Program Files\Apache Software Foundation\apache-maven-3.0.3
  </code></pre>
  
  <p>User vars:</p>
  
  <pre><code>M2 %M2_HOME%\bin
  PATH %JAVA_HOME%\bin;%M2%;
  </code></pre>
  
  <p>Now, from the command line</p>
  
  <pre><code>C:\&gt;javac -version
  javac 1.6.0_25
  
  C:\&gt;mvn -version
  Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/c
  lassworlds/launcher/Launcher
  
  Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.lau
  ncher.Launcher
          at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
          at java.lang.ClassLoader.loadClss(ClassLoader.java:306)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  Could not find the main class: org.codehaus.plexus.classworlds.launcher.Launcher
  .  Program will exit.
  </code></pre>
  
  <p>I've been insulated from the command line build details for Java thus far thanks to Eclipse, but it looks like it's having problems with finding the plexus-classworlds-2.4.jar in the /boot dir. Should I need some additional path info?</p>
  
  <p>Thanks!</p>