Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 5 of 5
  1. #1
    EvilAngel Guest

    Question 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 EvilAngel; 04-26-2007 at 10:25 AM.

  2. #2
    EvilAngel Guest

    Default

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

  3. #3
    RockHound Guest

    Default

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

  4. #4
    EvilAngel Guest

    Default

    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:
    http://wiki.open-xchange.com/wiki/in...lding_JSON_jar

  5. #5
    EvilAngel Guest

    Question

    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 EvilAngel; 04-29-2007 at 10:46 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •