Closed GoogleCodeExporter closed 9 years ago
I also removed in class com.google.api.client.json.jackson.JacksonFactory the
method
public JsonGenerator createJsonGenerator(OutputStream out,
com.google.api.client.json.JsonEncoding enc) throws IOException
because of missing reference to com.google.api.client.json.JsonEncoding.
It would be great to have help for API changes (probably in change logs)
Original comment by jan.loll...@gmail.com
on 5 Sep 2012 at 10:52
Attachments:
Version of google-api-java-client: 1.11.0-beta
Java environment: Java 5 SE (JRE 1.6, Eclipse set to 1.5 compatibility, Win XP
latest updates)
My setup was Eclipse, downloaded zipfile of libraries, added jars as per 'Java
5' instructions. I could not get the line
private static final JsonFactory JSON_FACTORY = new JacksonFactory( );
from the Hello Analytics tutorial to compile.
Rechecked the build paths and .classpath, all had the specified jars in.
Hope that Helps. If any more details would be helpful, I'm happy to supply them.
Original comment by alan.mel...@yuuguu.com
on 6 Sep 2012 at 10:15
I am not sure if I understand you correctly. Do you solved your problem or not?
I found a solution (written in my first post). My problem is, that my solution
is only a workaround and not the final solution. I guess there is a
inkonsistent dependency in the Maven configuration.
Original comment by jan.loll...@gmail.com
on 6 Sep 2012 at 6:54
Not solved. I have the same problem as you (missing JacksonFactory), plus some
extra problems. Cannot find OAuth2Native. Cannot find Analytics. I believe I
have included the correct jars, following the setup guide. Maybe I got it
wrong. I cannot tell.
Original comment by alan.mel...@yuuguu.com
on 7 Sep 2012 at 9:19
In 1.11 we separated jackson, jackson2, gson and proto implementations into
their own artifacts to give developers the flexibility to pick which jars they
require and not get unneeded dependencies.
References:
http://code.google.com/p/google-http-java-client/issues/detail?id=103 :
google-http-client-gson & google-http-client-jackson
http://code.google.com/p/google-http-java-client/issues/detail?id=85 :
google-http-client-jackson2
http://code.google.com/p/google-http-java-client/issues/detail?id=102 :
google-http-client-protobuf
The readme.html in the download zip
(http://code.google.com/p/google-api-java-client/downloads/detail?name=google-ap
i-java-client-1.11.0-beta.zip) contains a list of jars.
Here is the readme.html without version/name substitutions:
http://google-api-java-client.googlecode.com/hg-history/1.11.0-beta/google-api-c
lient-assembly/readme.html
(Look at the 'Dependencies for all Platforms' and the platform dependencies you
are interested in)
Original comment by rmis...@google.com
on 7 Sep 2012 at 12:12
Original issue reported on code.google.com by
jan.loll...@gmail.com
on 5 Sep 2012 at 10:15