W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1999

Re: question when installing

From: Yves Lafon <ylafon@w3.org>
Date: Tue, 12 Jan 1999 10:07:39 +0100 (MET)
To: "Li, Jiefeng" <jili@strategy.com>
cc: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
Message-ID: <Pine.GSO.4.05.9901121002150.6577-100000@tarantula.inria.fr>
On Mon, 11 Jan 1999, Li, Jiefeng wrote:

> Hello,
>  
> I downloaded jigsaw_2.0.0.zip from site: http://www.w3.org/
> <http://www.w3.org/> 
> But it meets some problems when running, the error is listed below:

This is a classloader bug of jdk1.2 on NT. There are two kludges possible
to make it run smoothly.
The first one is jdk 1.2 only, in the constructor of
org/w3c/www/http/HttpDate, replace 
            this.cls    = Class.forName(clsname);
by
this.cls = Class.forName(clsname, true, this.getClass().getClassLoader());
This is exactly the same thing but this one works better ;)
Then recompile and you're all set.
The second possible fix (bacward compatible with jdk1.1) is to add
this.cls.newInstance();
after the Class.forName(clsname);
of course you can add a if(jdk_bug) with jdk_bug declared as a private
static final boolean (a kind of #ifdef, jdk bugs are a pain).
I can mail you an updated zip directly if you want.
Regards,

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Tuesday, 12 January 1999 04:07:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:28 GMT