Re: Problems with JTIDY

Sami Lempinen wrote:
> On Mon, Oct 30, 2000 at 01:49:48PM -1200, Juan J. Merelo wrote:
> >
> > $ java -cp ".;../jtidy-04aug2000r2/build/Tidy.jar" Test16
> > http://localhost:8080
> >  index.html err.dat
> > java.lang.Error: java.util.MissingResourceException: Can't find bundle for
> > base
> > name org/w3c/tidy/TidyMessages, locale es_ES
> >         at org.w3c.tidy.Report.<clinit>(Report.java:137)
> >         at org.w3c.tidy.Tidy.parse(Tidy.java:1111)
> >         at Test16.run(Test16.java:48)
> >         at java.lang.Thread.run(Unknown Source)
> >
> > the r3 seems to be broken, at least at Sourceforge. Any idea?
> 
> OK, this seems due to the fact that your locale is set to es_ES, and a
> matching message file can not be found.
> 
> As a quick fix, you can try copying
> src/org/w3c/tidy/TidyMessages.properties to
> TidyMessages_es_ES.properties somewhere in your CLASSPATH.
> 
> I need to work out how to make it easy to handle locale-specific
> message files with JTidy. Any ideas, anyone?

I'll test this out as soon as I can but normally, the resource loader
would look for TidyMessages_es_ES, then TidyMessages_es, then
TidyMessages.  So, we shouldn't need to change anything in JTidy.  Juan,
what release of the JDK are you running?

Also, do you have Tidy.jar in your CLASSPATH?

Gary

Received on Monday, 30 October 2000 10:06:38 UTC