F.Pers
unread,Mar 22, 2013, 3:03:45 PM3/22/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to adwor...@googlegroups.com
Hi
im trying to use oAuth2 with the webServerClient connection, and i get a "java.lang.ClassNotFoundException: com.google.api.client.util.Preconditions" when executing the following code:
[code]
GoogleAuthorizationCodeFlow authorizationFlow = new GoogleAuthorizationCodeFlow.Builder(
new NetHttpTransport(),
new JacksonFactory(),
CLIENT_ID,
CLIENT_SECRET,
Lists.newArrayList(SCOPE))
.setApprovalPrompt("force")
// Set the access type to offline so that the token can be refreshed.
.setAccessType("offline").build();
[/code]
Can anybody tell me why or what code to use instead because i do have the access to the package com.google.api.client.util. but there really is no such class called Preconditions.
greez