unable to run servlet demo

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

unable to run servlet demo

Post by Guru » Thu Aug 08, 2002 7:09 am

Hello,
I had compiled JFreeChartServeltDemo, also compiled all the sources in com/jrefinery/chart/data and in ../date.
When I copy all this into servlets directory and run the demo, I get the following error

java.util.MissingResourceException: can't find resource for com.jrefinery.data.resources.DataPackageResources_en

Please help me with this as I am blocked completely
Thank You
Guru

David Gilbert

Re: unable to run servlet demo

Post by David Gilbert » Thu Aug 08, 2002 8:56 am

The DataPackageResources classes are in the JCommon class library. You need to be sure to compile these classes...some compilers will miss them because they are not directly referenced in the code, they get loaded dynamically by name.

Read up about Java's internationalisation for more information about what is going on.

Regards,

DG.

Guru

Re: unable to run servlet demo

Post by Guru » Thu Aug 08, 2002 9:26 am

Hello,
I did compile those classes and I don't find this file DataPackageResources_en.
Can you tell where I can find them For sure they are missing jcommon-0.6.4 - I downloaded the tar file from jcommon page.
There is a similar posting in the jcommon forums also!
Thank You
Guru

David Gilbert

Re: unable to run servlet demo

Post by David Gilbert » Thu Aug 08, 2002 10:37 am

There is no DataPackageResources_en. The resource loader may look for one, it looks for a number of files based on a standard naming convention...in the end it should load the DataPackageResources.class file as the default.

A useful reference is "Java In A Nutshell" (David Flanagan, OReilly) which has a chapter on Internationalisation. It explains how the resource loader looks for localised resources.

Regards,

DG.

Locked