Announcement

Collapse
No announcement yet.

Cannot find symbol jo.reset()

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

  • 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.

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

    Comment


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

      Comment


      • #4
        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:

        Comment


        • #5
          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.

          Comment

          Working...
          X