Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: JFree chart Exception

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default JFree chart Exception

    Hi Friends,

    I have copy the code from following link

    http://www.roseindia.net/chartgraphs...-jsppage.shtml

    I used NetBeans IDE, and I have add jfreechart.jar also. But, during runtime it raise following error,

    //=================================================
    An error occurred at line: 33 in the jsp file: /index.jsp
    The type org.jfree.util.PublicCloneable cannot be resolved. It is indirectly referenced from required .class files
    30: final ValueAxis valueAxis = new NumberAxis("Run");
    31: renderer = new BarRenderer();
    32:
    33: plot = new CategoryPlot(dataset, categoryAxis, valueAxis,
    34: renderer);
    35: plot.setOrientation(PlotOrientation.VERTICAL);
    36: chart = new JFreeChart("Srore Bord", JFreeChart.DEFAULT_TITLE_FONT,
    //================================================== =


    Help me friends, Thanks a lot in advance.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: JFree chart Exception

    Make sure you have all the dependencies needed on your classpath, in particular the JCommon library (see the JFreeChart download page for more information)

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: JFree chart Exception


  4. The Following User Says Thank You to copeg For This Useful Post:

    BerilChandra (April 10th, 2011)

  5. #4
    Junior Member
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: JFree chart Exception

    Hi Friends,


    We have add jcommon.jar to this project, Then only we solve this Exception.

Similar Threads

  1. Replies: 6
    Last Post: March 25th, 2011, 03:42 PM
  2. can someone please help me im getting exception
    By kristynrod in forum Exceptions
    Replies: 2
    Last Post: March 15th, 2011, 04:40 PM
  3. DAO exception
    By nrao in forum What's Wrong With My Code?
    Replies: 2
    Last Post: December 13th, 2010, 12:22 PM
  4. gui to make a flow chart.
    By Abhinav in forum AWT / Java Swing
    Replies: 1
    Last Post: January 27th, 2010, 02:04 AM
  5. How to create pie or other diagrams in jsp page?
    By sundarjothi in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: July 8th, 2009, 06:44 AM