ExceptionInInitializerError Caused by java.util.MissingReso

Discussion about JFreeChart related to stockmarket charts.
Locked
manolakis
Posts: 9
Joined: Thu Mar 22, 2007 2:56 am

ExceptionInInitializerError Caused by java.util.MissingReso

Post by manolakis » Thu Mar 22, 2007 3:19 am

Hi there
It's my first time here and i would like to congradulate everyone that has contributed to that project. I am really surprised.
The reason that i am posting here is that i am trying out a demo and having some problems
I have managed to compile the source code and the whole package. Unfortunately when i run the java class file through a terminal window i get the following error.
bash-3.1$ java TimeSeriesDemo5
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.jfree.chart.ChartFactory.createTimeSeriesChart(ChartFactory.java:1646)
at TimeSeriesDemo5.createChart(TimeSeriesDemo5.java:109)
at TimeSeriesDemo5.<init>(TimeSeriesDemo5.java:70)
at TimeSeriesDemo5.main(TimeSeriesDemo5.java:139)
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:150 8)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1262)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:717)
at org.jfree.chart.JFreeChartInfo.<init>(JFreeChart.java:1552)
at org.jfree.chart.JFreeChart.<clinit>(JFreeChart.java:232)
... 4 more
I would be glad if anyone was familiar with this exception

Thanks for your time

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Mar 22, 2007 8:44 am

Does it work if you use the JFreeChart and JCommon jar files included in the distribution?

If you rebuilt the jar files yourself, did you use the Ant script included in the distribution? The Ant script copies across some ResourceBundle class files into the jar, which you must have present or you'll get an exception like the one you posted.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked