java.lang.ClassNotFoundException for google-gson-stream-2.2.jar usage

4,293 views
Skip to first unread message

adubolazov

unread,
May 8, 2012, 10:13:26 AM5/8/12
to google-gson
Hi,

I've tried to use google-gson-stream-2.2.jar in my application and got
the java.lang.ClassNotFoundException
(com.google.gson.internal.JsonReaderInternalAccess) during JsonReader
instantiation. Does it mean the library is not assumed to be used
alone?

Thanks!

Christophe Dumoulin

unread,
May 9, 2012, 4:33:57 AM5/9/12
to googl...@googlegroups.com
The library can be used alone but you have to use gson-2.2.jar instead of
google-gson-stream-2.2.jar
You can find it in the zip file:
http://code.google.com/p/google-gson/downloads/list/google-gson-2.2-release.zip

Regards,
Chris

-----Message d'origine-----
From: adubolazov
Sent: Tuesday, May 08, 2012 4:13 PM
To: google-gson
Subject: [google-gson:1604]: java.lang.ClassNotFoundException
forgoogle-gson-stream-2.2.jar usage
--
You received this message because you are subscribed to the Google Groups
"google-gson" group.
To post to this group, send email to googl...@googlegroups.com.
To unsubscribe from this group, send email to
google-gson...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-gson?hl=en.


Inderjeet Singh

unread,
May 9, 2012, 4:56:57 PM5/9/12
to googl...@googlegroups.com
The library jar is missing some classes. We will have a fix available soon.

Any reason you need to use stream.jar instead of full Gson 2.2 jar?

Inder

adubolazov

unread,
May 10, 2012, 3:58:58 AM5/10/12
to google-gson
Hi!

Thanks a lot for your reply!

The only reason is the library size. It contains all necessary
functions and I assumed it could be used alone

Jesse Wilson

unread,
May 10, 2012, 1:43:20 PM5/10/12
to googl...@googlegroups.com
Whoops, that was a build system mistake. A fixed stream jar is available here:

I named the fixed stream jar "2.2.1". This is the same as the 2.2 stream jar but without the ClassNotFoundException problem. The non-streaming aspect of the release is not impacted.

Reply all
Reply to author
Forward
0 new messages