Installing JFreeChart Libraries in NetBeans
Installing JFreeChart Libraries in NetBeans
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.