Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2011
    Location
    Parma Italy
    Posts
    88
    Rep Power
    0

    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 1.0.13.zip here JFreeChart - Browse /1. JFreeChart/1.0.13 at SourceForge.net
    2) downloaded jCommon 1.0.13 here
    JFreeChart - Browse /3. JCommon at SourceForge.net

    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",
    data,
    true, // legend?
    true, // tooltips?
    false // URLs?
    );
    // create and display a frame...
    ChartFrame frame = new ChartFrame("First", chart);
    frame.pack();
    frame.setVisible(true);
    }
    Select Fix import from Source menu and run the application. Of course, I only got errors (attached snap A00214).

    Any help greatly appreciated!

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

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default

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

    db

  3. #3
    Join Date
    Mar 2011
    Location
    Parma Italy
    Posts
    88
    Rep Power
    0

Similar Threads

  1. JFreeChart 1.0.11
    By Java Tip in forum Java Software
    Replies: 3
    Last Post: 04-18-2014, 08:27 PM
  2. Jfreechart
    By aaruviswa in forum Web Frameworks
    Replies: 2
    Last Post: 03-17-2011, 06:51 AM
  3. JfreeChart
    By puk284 in forum Advanced Java
    Replies: 1
    Last Post: 05-12-2009, 04:52 PM
  4. JFreeChart 1.0.7
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-17-2007, 02:13 PM
  5. JFreeChart 1.0.5
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-10-2007, 05: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
  •