Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2011
    Location
    India,Tamil Nadu
    Posts
    32
    Rep Power
    0

    Default Package org.jfree.chart does not exit.

    HI,

    Have a nice day.


    JFreeChart: Bar Chart Demo : Bar Chart**Chart**Java
    I DOWNLOADED THE BARCHARTDEMO.JAVA FROM THIS LINK


    C:\Documents and Settings\vicky\My Documents\NetBeansProjects\jfreechart-1.0.0-rc1

    I SAVED THE PROGRAM IN THIS LOCATION.
    I am using NetBeans IDE 6.8

    The red line denotes incorrect package package org.jfree.chart.demo;

    Error: Package org.jfree.chart does not exit.
    Help me correct my error.

    Wirh regards and respects,
    Nandhini.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Have you downloaded the JFreeChart libraries? If so, and if you are using NetBeans, have you set NetBeans to use the JFreeChart libraries in its build path? If not, you should go to the NetBeans help sites to find out how to do this.

  3. #3
    Join Date
    Jul 2011
    Location
    India,Tamil Nadu
    Posts
    32
    Rep Power
    0

    Default

    Hi,
    Thank you.

    I set the JFreeChart libraries in NetBeans build path as you said.

    Just i copied the JFreeChart libraries in this path.

    C:\Program Files\Java\jdk1.6.0_21\jre\lib

    Then, the program does not show any error.

    Now
    the program is running successfully
    .


    Run Project:

    One or more projects were compiled with errors.
    Application you are running may end unexpectedly.


    May i know why java source package (org.jfree.chart.annotations.junit) contains files with error.
    With Regards and respects,
    Nandhini.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Don't put your JFreeChart files into the java directories, but instead leave them in their own directories and set NetBeans to recognize those files as needing to be on its build path. As for your current error, you really don't give enough information to be able to help you (at least not for me).

  5. #5
    Join Date
    Jul 2011
    Location
    India,Tamil Nadu
    Posts
    32
    Rep Power
    0

    Default

    Thank you.

  6. #6
    Tamasa is offline Member
    Join Date
    Aug 2011
    Posts
    7
    Rep Power
    0

  7. #7
    Ike
    Ike is offline Member
    Join Date
    Aug 2011
    Posts
    21
    Rep Power
    0

    Default What now?

    I've downloaded the latest version:
    JFreeChart - Browse /2. Documentation/1.0.13 at SourceForge.net

    There's 'Configuring IDEs for JFreeChart' chapter on page 27. (NetBeans)

    I've added both JCommon and JFreeChart directories to library claasspaths.
    Than made a new project, added those 2 libraries in the project, and typed the example code from page 29.
    Even tried Source>Fix Imports afterwards, as manual suggested. Still can't get it to work.
    What should I do?
    Attached Thumbnails Attached Thumbnails Package org.jfree.chart does not exit.-jfreechart-example.jpg  

Similar Threads

  1. JFree chart Exception
    By BerilChandra in forum AWT / Swing
    Replies: 1
    Last Post: 04-01-2011, 02:51 PM
  2. jsp and jfree charts
    By asad.naqvi in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 12-22-2010, 01:21 PM
  3. using thermometer plot in jfree
    By nitish_coder in forum New To Java
    Replies: 1
    Last Post: 10-07-2009, 06:31 PM
  4. Demo bar chart and pie chart
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-23-2008, 11:22 PM
  5. How to draw a bar graph using Jfree
    By sacr83 in forum Java 2D
    Replies: 0
    Last Post: 04-30-2008, 08:50 AM

Posting Permissions

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