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
unable to run servlet demo
Re: unable to run servlet demo
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.
Read up about Java's internationalisation for more information about what is going on.
Regards,
DG.
Re: unable to run servlet demo
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
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
Re: unable to run servlet demo
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.
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.