building jfreechart 0.8

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
jim moore

building jfreechart 0.8

Post by jim moore » Fri Mar 22, 2002 10:30 pm

i think it would be helpful if you included the batik jars that are necessary to build jfreechart in the download or at least make some mention of which ones are necessary in the readme.

I downloaded batik 1.1.1 from apache and there are 20+ jars included in the distribution. I had no idea which were necessary, so I just included them all, but now my lib folder is pretty messy (and I'm guessing that lots of the jars are unnecessary).

--jim

Nathan Conklin

Re: building jfreechart 0.8.0

Post by Nathan Conklin » Sun Mar 24, 2002 1:11 pm

I am new to JFreeChart and am starting with 0.8.0. I thought that I would start with the demo, but that doesn't seem to work. When reading the source, the JFreeChartDemo.java has the following lines.

import com.jrefinery.layout.LCBLayout;
import com.jrefinery.ui.JRefineryUtilities;
import com.jrefinery.ui.about.AboutFrame;

However, these (and many other) packages seem to have moved. Has all of these packages moved into the com.jrefinery.chart package?

For instance, when I try to compile the com\jrefinery\chart\TextTitle.java it is unable to find:
import com.jrefinery.ui.Size2D;

Where are these missing packages?

Nathan Conklin

Re: building jfreechart 0.8

Post by Nathan Conklin » Sun Mar 24, 2002 1:34 pm

I figured out that I need the common files as well. My JDK 1.3.1_02 is not reading the jars correctly.

Now it compiles, but I get the following:
java com.jrefinery.chart.demo.JFreeChartDemo
Exception in thread "main" java.util.MissingResourceException: Can't find bundle
for base name com.jrefinery.chart.demo.resources.JFreeChartDemoResources, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at com.jrefinery.chart.demo.JFreeChartDemo.<init>(JFreeChartDemo.java:258)
at com.jrefinery.chart.demo.JFreeChartDemo.main(JFreeChartDemo.java:1747)

Strange ... This isn't usually the machine that I do the development on. I may test it on that machine. Sorry for filling this thread.

David Gilbert

Re: building jfreechart 0.8

Post by David Gilbert » Sun Mar 24, 2002 7:45 pm

Hi Nathan,

I need to update the instructions for building JFreeChart. As of 0.8.0, I've put all the user interface items that might require localisation into a resource bundle (actually I haven't done them all, the property editors still need to be done). The class is:

com.jrefinery.chart.demo.resources.JFreeChartResources

Since this class is referenced indirectly in the code, you have to explicitly compile it. In future versions of JFreeChart there will be localised versions of this class...for example, just last night a developer e-mailed me a version of the class containing German translations which will be included with 0.8.1.

This is the first time I've coded resources this way, so I'll happily take advice from any gurus on how to improve the setup...

Regards,

Dave Gilbert.

P.S. And if anyone wants to contribute a localised version of this class (and the ones in the JCommon library) it would be greatly appreciated!

Locked