From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4cd1c4ca04021284 X-Google-Attributes: gidfee84,public From: Cliff Straw Subject: Re: Netscape Communicator 4.01b6: Java not running with DU 4.0b! Date: 1997/07/09 Message-ID: <33C3A54D.30248FEA@zk3.dec.com>#1/1 X-Deja-AN: 255753246 References: <5psmrp$to1@fstgal00.tu-graz.ac.at> To: Thomas Leitner X-Priority: 3 (Normal) Organization: Digital Equipment Corporation Reply-To: straw@zk3.dec.com Newsgroups: comp.unix.osf.osf1 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