I am using NetBeans IDE 3.6 on windows 2000 to develop a Swing application. I want to display a graph of results obtained from a calculation performed by an external program. I was recommended JFreeGraph.
I have downloaded the zip files for JFreeGraph and JCommon and extracted them to
c:/myname/Java/
I did a number of things to try some of the demos working which lead me to the attempt I outline below. (The main demo.jar works fine.)
I mounted the following files and directories which is equivalent to adding them to a classpath :
servlet.jar
junit.jar
gnujaxp.jar
jcommon-0.9.5.jar
jfreechart-0.9.20/src
I then browsed to the src/org/jfree/chart/demo/BarChartDemo and compiled which produced deprecated warnings (which I presume are ignorable for the time being) and then ran it which produce the following errors.
java.lang.ExceptionInInitializerError
at org.jfree.chart.ChartFactory.createBarChart(ChartFactory.java:548)
at org.jfree.chart.demo.BarChartDemo.createChart(BarChartDemo.java:142)
at org.jfree.chart.demo.BarChartDemo.<init>(BarChartDemo.java:81)
at org.jfree.chart.demo.BarChartDemo.main(BarChartDemo.java:217)
Caused by: java.util.MissingResourceException: Can't find bundle for base name org.jfree.chart.resources.JFreeChartResources, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
at org.jfree.chart.JFreeChartInfo.<init>(JFreeChart.java:1396)
at org.jfree.chart.JFreeChart.<clinit>(JFreeChart.java:187)
... 4 more
Exception in thread "main"
None of the demos seem to run and in general I have had difficulties getting jfreegraph up and running.
Does anybody know what I can do to fix this or what I am doing wrong?