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)
I cloned the code, I’ve build and comiled the code in command line and it ran succesfully.
But now I imported the project into eclipse and it won’t run. I always get the error:
Error: Could not find or load main class Libs\Google
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.
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.
Thx!
(if more info is needed please ask in comments and I will provide)
UPDATE:
I have installed
Eclipse Juno version Version: 4.2.1
M2e plugin 1.2 (Maven integration for eclipse)
Apache Maven version 3.0.4.
UPDATE 2:
Also I noticed when I try to open pom.xml in eclipse I get an error.
An error has occurred. See error log for more details.
java.lang.NullPointerException
No further details
I imported the application in Netbeans and it worked. I still don’t know what went wrong with Eclipse and didn’t find a solution. For now I’m using Netbeans.
If I find a solution I will post it here for future reference.