OK, so I think I've solved this problem - the intructions provided don't 
mention that you need the google oauth client jar as well, adding that to 
my java classpath makes it all work. That's even despite the fact that I'm 
not using oauth authentication!

The requirement for this is mentioned in the installation document in the 
downloaded zip, but should probably be in the online instructions too...

On Tuesday, November 20, 2012 4:43:09 PM UTC, paulmdavies wrote:
>
> Hi All,
>
> I hope someone can help me: I'm probably being stupid, but I'm struggling 
> to get the Spreadsheets API up and running.
>
> I've followed the instructions 
> here<https://developers.google.com/google-apps/spreadsheets/#setting_up_your_client_library>,
>  
> and the imports all compile OK, but when I try and construct a Spreadsheet 
> serivce instance:
>
> new SpreadsheetService("MySpreadsheetIntegration-v1")
>
> I get the error:
>
> error while loading GoogleService, Missing dependency 'class 
> com.google.api.client.auth.oauth2.Credential', required 
> by<path_to_gdata>gdata-core-1.0.jar(com/google/gdata/client/GoogleService.class)
>
> Any ideas on how to solve this? I've double checked that I've got all the 
> jars specified, but the same error came up again.
>
> Thanks in advance.
>
> Paul
>

Reply via email to