File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Issues with google analytics-- program wont compile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Issues with google analytics-- program wont compile" Watch "Issues with google analytics-- program wont compile" New topic
Author

Issues with google analytics-- program wont compile

new be
Greenhorn

Joined: Jun 20, 2012
Posts: 3
Trying to take data from google analytics and print
Hi,

I am trying to program a basic code to take information from google analytics and print it out. I wrote some code, whats wrong. (user/pass) removed for privacy reasons.

I am trying to make it all occur in one class for now (Its the beta version to make sure I can download information and use it before I start the real program). I just want to take information and print it out. I know the table id isn't set, but the program won't compile:

Exception in thread "main" java.lang.Error: Unresolved compilation problem:

at xyz.xyzStart.main(xyzStart.java:96)

------



[Added code tags - see UseCodeTags for details]
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4490
    
    8

That's not a compilation error. That's an error you get from your IDE (Eclipse?) when you try to run something that didn't compile properly.

So try and compile it, rather than run it. That should give you the real compilation errors. If it's not clear what to do then, let us know what those errors are.

(You do realise that the main() method is empty, so a successful run wouldn't do anything anyway?)
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18986
    
    8

Thanks for the code tags, that makes it much easier to read.

As for your error: it looks like you're trying to run the code in some IDE before compiling it. And so you just get a generic error which tells you that the code wasn't compiled successfully yet. You should compile the code first and see what kind of error messages you get.
new be
Greenhorn

Joined: Jun 20, 2012
Posts: 3
Im confused, ecliplse IDE does compile automatically doesn't it?


also when I try to select build under project it isn't highlighted it won't let me build.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issues with google analytics-- program wont compile