Arnold Strong wrote:I am not really a beginner anymore.
This is a "hello world" for google analytics using Java API.
The code below is from the google website.
Thanks for the details, now I understand you're trying to quickly learn writing for google analytics but are not very accustomed with eclipse.
Here is what I think is wrong with your project -
- You need not copy all referenced libraries into lib.
- A valid JDK or JRE is not on your classpath - Since class Arrays is not identified.
Check if its a google's version of Arrays. Posting your import statements on top of the file will help.
They should be marked in red by eclipse too. When you work with java in eclipse( or any
IDE for that matter ) first see if anything ir red in your import statements.
- Google jars are NOT on your classpath. Simplest way is to open the .classpath file. - Since classes like HttpTransport and Credentials are not identified.
Try the below-
GO to any red marked line > Press Ctrl + 1 > Fix project setup. See what happens and let us know.
Cheers!