Announcement

Collapse
No announcement yet.

Cannot find symbol jo.reset()

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • EvilAngel
    Guest replied
    I am trying www.json.org, json-lib.sourceforge.net, sourceforge.net/projects/json and other web sites but I can't find a CVS repository containing org.json.

    You know where i can fetch it ?

    Thanks

    [EDIT]
    Oki, found it on the install wiki.I did not notice it chaged since I read it :/
    Last edited by Guest; 04-29-2007, 10:46 PM.

    Leave a comment:


  • EvilAngel
    Guest replied
    Oki.
    In fact there are 2 differents URL:
    The old method (i was looking) http://typo3.open-xchange.com/wiki/i...lding_JSON_jar
    The new method from CVS:

    Leave a comment:


  • RockHound
    Guest replied
    Re-read the wiki section. There you will find new cvs instructions for json.

    Leave a comment:


  • EvilAngel
    Guest replied
    Oki, JSONObject$Null.class is due to this in JSONObject.java :
    Code:
     private static final class Null {

    Leave a comment:


  • EvilAngel
    Guest started a topic Cannot find symbol jo.reset()

    Cannot find symbol jo.reset()

    Hi all,

    I am on Debian Etch AMD64.
    I installed all 3d parties librabry.
    I build json.jar according the howto: http://typo3.open-xchange.com/wiki/i...lding_JSON_jar

    When I make the compilation with javac I have a warning. It is said to be normal on the howto.

    Inside the json.jar I have these files in /org/json:
    JSONArray.class
    JSONTokener.class
    JSONException.class
    JSONObject$Null.class
    JSONObject$1.class
    JSONObject.class
    JSONString.class
    JSONStringer.class
    JSONWriter.class

    I feel it strange to have 3 JSONObject files.

    Then, when I launch ant, I have this message:
    Code:
    /tmp/open-xchange/src/com/openexchange/ajax/Mail.java:1037: cannot f
    ind symbol
        [javac] symbol  : method reset()
        [javac] location: class org.json.JSONObject
        [javac]                                     jo.reset();
    I opened /tmp/open-xchange/src/com/openexchange/ajax/Mail.java.
    Here are the lines around 1037:
    final JSONObject jo = new JSONObject();
    for (int i = 0; i < insertedObjs.length; i++)
    {
    final CommonObject current = insertedObjs[i];
    jo.reset();
    However, in the Javadoc of JSONObject, there is no function called reset().

    ANy ideas ?
    Thanks
    Last edited by Guest; 04-26-2007, 10:25 AM.
Working...
X