0% found this document useful (0 votes)
57 views

Installing JFreeChart Libraries in NetBeans

To run charts and graphs from JFreeChart in NetBeans, the user must: 1. Download and unpack JCommon and JFreeChart libraries to their computer. 2. Configure JCommon and JFreeChart as user libraries in NetBeans by adding the JAR files and source directories. 3. Add the JFreeChart and JCommon libraries to their project and test a sample program.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

Installing JFreeChart Libraries in NetBeans

To run charts and graphs from JFreeChart in NetBeans, the user must: 1. Download and unpack JCommon and JFreeChart libraries to their computer. 2. Configure JCommon and JFreeChart as user libraries in NetBeans by adding the JAR files and source directories. 3. Add the JFreeChart and JCommon libraries to their project and test a sample program.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

CONFIGURATING NETBEANS IDE WITH THE LIBRARIES TO RUN THE GRAPH/CHART FROM JFREECHART

1. Download the latest version of the JCommon class library...and unpack it to a directory on your computer (almost anywhere is fine). 2. Download the latest version of the JFreeChart class library...and unpack it to a directory on your computer (again, almost anywhere is fine). 3. Now, launch NetBeans, and carry out the following steps to con_gure JFreeChart and JCommon as user libraries: In NetBeans, select the Library Manager item from the Tools menu|you should see the dialog shown in figure:

4. Click on the New Library... button and enter JCommon-1.0.16 as the library name. 5. With the Classpath tab selected, click on the Add JAR/Folder... button and select 6. 7. 8. 9.
the jcommon-1.0.16.jar _le from the JCommon directory created back in step 1. With the Sources tab selected, click on the Add JAR/Folder... button and select the source directory for JCommon. Click on the New Library... button and enter JFreeChart-1.0.13 as the library name. With the Classpath tab selected, click on the Add JAR/Folder... button and select the jfreechart-1.0.13.jar file from the JFreeChart directory created back in step 3. With the Sources tab selected, click on the Add JAR/Folder... button and select the source directory for JFreeChart. At this point, you have complete the configuration of the libraries.

1. In the Projects pane, you'll see a Libraries node in the project. Right-click on this 2. 3.
node, select Add Library... and select the JFreeChart and JCommon libraries. Checkout the PM_Graph_Test.java file from the repository Select Fix Imports from the Source menu, then compile and run the PM_Graph_Test.java file.

You might also like