I am using Eclipse..
I copied the 3 jars (the classes, source and javadocs) into my active
project and set the build path in the project settings.
The real problem is that if I create a java class that is not a
servlet, ie., a class with a main() function (in the same package),
the Gson classes work fine.
So, something like ..
ajs.web.TestServlet#doGet(..) which uses Gson#toJSON(new
String("JSON"))
does not work and shows the error
however
ajs.web.TestLocal#main(..) using Gson#toJSON(new String("JSON"))
prints to System.out fine..
I'm flabbergasted and getting behind on my project but nothing I try
works!
I'm not so good at using Servlets (more of a front-end developer), so
this is a bit frustrating!
I really need JSON as my front-end is entirely javascript, and this
looks like the best and easiest library to use! Maybe tonight I'll
checkout the source and put it directly in my project. :(
Any help is appreciated!
--Arunjit