title: Can't run Java Application with Maven from Eclipse but it works in Command line
body: <p>I'm trying to run a sample from Google. To be precise the Google Calendar cmdline sample (http://samples.google-api-java-client.googlecode.com/hg/calendar-cmdline-sample/instructions.html)</p>
  
  <p>I cloned the code, I've build and comiled the code in command line and it ran succesfully.</p>
  
  <p>But now I imported the project into eclipse and it won't run. I always get the error:</p>
  
  <pre><code>    Error: Could not find or load main class Libs\Google
  </code></pre>
  
  <p>I tried googleing the error but did not find a simular situation.
  Anyone that can help me on the way to a solution, because I can't make heads or tails out of it.</p>
  
  <p>I assume it's not a fault in the code, it's code from google and it worked when I compiled in command line. So it must be something from eclipse.
  I did an import of existing maven project. It didn't gave errors or anything and then I tried to run with the above error as result.</p>
  
  <p>Thx!
  (if more info is needed please ask in comments and I will provide)</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I have installed</p>
  
  <p>Eclipse Juno version Version: 4.2.1</p>
  
  <p>M2e plugin 1.2 (Maven integration for eclipse)</p>
  
  <p>Apache Maven version 3.0.4.</p>
  
  <p><strong>UPDATE 2:</strong></p>
  
  <p>Also I noticed when I try to open pom.xml in eclipse I get an error.</p>
  
  <pre><code>An error has occurred. See error log for more details.
  java.lang.NullPointerException
  </code></pre>
  
  <p>No further details</p>