Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Cliff Straw <straw@zk3.dec.com>
To: Thomas Leitner <tom@finwds01.tu-graz.ac.at>
Subject: Re: Netscape Communicator 4.01b6: Java not running with DU 4.0b!
Date: 1997/07/09	[thread overview]
Message-ID: <33C3A54D.30248FEA@zk3.dec.com> (raw)
In-Reply-To: 5psmrp$to1@fstgal00.tu-graz.ac.at


Thomas Leitner wrote:

> Hello,
>
> I'm trying to run Netscape Communicator 4.01b6 under Digital Unix 4.0b
>
> with the latest Patch Kit (004) installed and Java doesn't seem to
> run.
>
> I open the Java Console, it says "Java starting" and the console
> stays empty even when I load a page with a Java Applet. The Applet
> does not start either.
>
> Anyone any idea what could be wrong? Or did DEC screw up Netscape
> 4.01b6
> with their latest Pthreads modification in patch kit #4?

Thank you for trying the beta version of Communicator on Digital UNIX.
This problem is caused by a long standing bug in Netscape Navigator,
which has now migrated to Netscape Communicator.

The root of the problem is the use of the C RTL function poll() versus
select() in the X Toolkit library (libXt).  In X11R5, libXt performed
all of its I/O multiplexing using the select() call.  With X11R6 the
default option is have libXt use the C RTL function poll() instead of
select() for I/O multiplexing.  For performance reasons, the X11R6 libXt
that ships with Digital UNIX V4.0 uses poll() instead of select().  The
use of select() or poll() by libXt is undocumented.  Any vendor shipping
libXt is free to choose which mechanism to use.

Netscape Navigator takes advantage of this undocumented implementation
detail to intercept calls to slect(), which allows it to manage its
threads and to distribute X events among these threads. Unfortunately,
Navigator does not intercept calls to poll().  The result when using a
libXt built with poll() is that only the main thread (which controls the
main Navigator windows) receives and processes X events, other threads
(which control Java applets and the Java console window) never receive
any X events and consequently appear to be "dead".

The Netscape Navigator Gold kit available from the Digital web site
patches this problem by shipping a special version of libXt built to use
select(). This libXt is only used when running Navigator.

Netscape has told us that this problem will be fixed in Communicator.  A
temporary workaround is to download the Navigator Gold V3.01 kit from
http://www.unix.digital.com/products/internet. Extract the libXt.so
library to a directory (DO NOT replace /usr/shlib/libXt.so with this).
Before running Communicator, set the environment variable
LD_LIBRARY_PATH to the path where you placed libXt.so

--
Cliff Straw                        Digital UNIX Web Software Group
Mailstop: ZKO3-2/W17               email: straw@zk3.dec.com
Digital Equipment Corporation      (603) 881-0949
110 Spit Brook Road                (dtn) 381-0949
Nashua, NH 03062-2698





  reply	other threads:[~1997-07-09  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-08  4:00 Netscape Communicator 4.01b6: Java not running with DU 4.0b! Thomas Leitner
1997-07-09  4:00 ` Cliff Straw [this message]
1997-07-10  4:00   ` Erik Persson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox