Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2011
    Parma Italy
    Rep Power

    Default Help jFreeChart and Netbeans

    Hi all,

    after a whole day searching everywhere I can't solve my problem.

    I would like to use jFreeChart in NetBeans, but I get errors even following JFC instructions.

    What I've done:
    1) downloaded jfreechart here JFreeChart - Browse /1. JFreeChart/1.0.13 at
    2) downloaded jCommon 1.0.13 here
    JFreeChart - Browse /3. JCommon at

    Both unpacked, then following instruction manual pag.29 where it stases:

    11. With the Classpath tab selected, click on the Add JAR/Folder... button and select
    the jfreechart-1.0.13.jar le from the JFreeChart directory created back in step 3.

    Well, there isn't any jfreechart-1.0.13.jar file in the unpacked folder.
    Instead, there is a jfreechart-1.0.13.jar-demo.jar (see attached snap A00213)

    I proceed using this demo version of jar file and configure both as libraries, then I try to open a project following next instruction manual chapter A 2.3 pag 29.

    They suggest to try this code

    Java Code:
    public static void main(String[] args) {
    // create a dataset...
    DefaultPieDataset data = new DefaultPieDataset();
    data.setValue("Category 1", 43.2);
    data.setValue("Category 2", 27.9);
    data.setValue("Category 3", 79.5);
    // create a chart...
    JFreeChart chart = ChartFactory.createPieChart(
    "Sample Pie Chart",
    true, // legend?
    true, // tooltips?
    false // URLs?
    // create and display a frame...
    ChartFrame frame = new ChartFrame("First", chart);
    Select Fix import from Source menu and run the application. Of course, I only got errors (attached snap A00214).

    Any help greatly appreciated!

    Attached Thumbnails Attached Thumbnails Help jFreeChart and Netbeans-a00213.png   Help jFreeChart and Netbeans-a00214.jpg  
    Last edited by susieferrari; 05-18-2011 at 04:04 PM. Reason: type error

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power


    after a whole day searching everywhere ...
    Aw c'mon! Have you looked inside the folders shown in your attached image?


  3. #3
    Join Date
    Mar 2011
    Parma Italy
    Rep Power

Similar Threads

  1. JFreeChart 1.0.11
    By Java Tip in forum Java Software
    Replies: 3
    Last Post: 04-18-2014, 09:27 PM
  2. Jfreechart
    By aaruviswa in forum Web Frameworks
    Replies: 2
    Last Post: 03-17-2011, 07:51 AM
  3. JfreeChart
    By puk284 in forum Advanced Java
    Replies: 1
    Last Post: 05-12-2009, 05:52 PM
  4. JFreeChart 1.0.7
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-17-2007, 03:13 PM
  5. JFreeChart 1.0.5
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-10-2007, 06:36 PM

Posting Permissions

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