W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

Re: Problems with JTIDY

From: Gary L Peskin <garyp@firstech.com>
Date: Mon, 30 Oct 2000 07:05:43 -0800
Message-ID: <39FD8E47.106EDFC7@firstech.com>
To: Html-Tidy <html-tidy@w3.org>
CC: "Juan J. Merelo" <jj.merelo@civista.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT