[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cannot find symbol symbol : constructor JSONTokener(java.io.Reader)



On 2013-04-12 16:50, Mathieu Malaterre wrote:
> Does anyone knows why I would be getting:
> 
>     [javac] /home/mathieu/debian/collab/deb-maint/jheliosviewer/trunk/jhelioviewer-2.2.1/src/jhv/src/org/helioviewer/jhv/io/DataSources.java:190:
> cannot find symbol
>     [javac] symbol  : constructor JSONTokener(java.io.Reader)
>     [javac] location: class org.json.JSONTokener
>     [javac]                 jsonResult = new JSONObject(new
> JSONTokener(reader));
>     [javac]                                             ^
> 
> where:
> 
> $ jar tvf /usr/share/java/jabsorb.jar | grep org.json.JSONTokener
>   5103 Mon Jul 05 21:22:46 CEST 2010 org/json/JSONTokener.class
> 
> Thanks
> 
> 

jabsorb is not the json library; jabsorb embeds the json library.  Odds
are it embeds an old version or only a part of it and thus does not have
the class you want.

~Niels



Reply to: