Re: question when installing

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 UTC