Results 1 to 2 of 2

Thread: Scope problem

  1. #1
    freddy_k is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Scope problem

    Hi !

    This is the first time im using custom downloaded packages and seems i have problem "adding" them correctly to my project.

    my project :
    -package
    ab . java
    ..
    xy . java
    XML.java - downloaded from json.org
    XMLTokener.java

    libraries incl:
    json newest package

    The problem is : in XML.java and XMLTokener.java JSONExceptions are thrown, seems ok to me, but wont compile . The error message is
    " required java.lang.Throwable found net.sf.json.JSONException" . java.lang.Throwable is a super class of JSONException, so i should be able to
    throw JSONException here.
    Theres also a problem in XMLTokener class, which is a direct subclass of JSONTokener, it cant find the method " boolean end()"
    inherited from JSONTokener. What am i missing ?

  2. #2
    freddy_k is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

Similar Threads

  1. problem with formbean in request scope
    By rajendra_bayana in forum Struts
    Replies: 0
    Last Post: 12-29-2011, 11:11 AM
  2. Problem with scope
    By jlennards in forum Advanced Java
    Replies: 6
    Last Post: 07-16-2011, 05:32 AM
  3. Scope Problem???
    By c_walker in forum New To Java
    Replies: 4
    Last Post: 12-12-2009, 03:30 AM
  4. Problem with Session Scope while using with Java Bean
    By sulthanmytheen in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-27-2009, 11:50 AM
  5. [SOLVED] scope problem with a servlet
    By pnolans in forum Java Servlet
    Replies: 7
    Last Post: 08-23-2008, 03:50 PM

Tags for this Thread

Posting Permissions

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