From owner-freebsd-java@FreeBSD.ORG Mon Sep 13 19:18:21 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 9209B106564A; Mon, 13 Sep 2010 19:18:20 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Ivan Voras Date: Mon, 13 Sep 2010 15:17:49 -0400 User-Agent: KMail/1.6.2 References: <201009091743.01109.jkim@FreeBSD.org> <201009131354.24870.jkim@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Message-Id: <201009131518.04781.jkim@FreeBSD.org> Cc: freebsd-java@freebsd.org Subject: Re: IcedTea6 Mozilla plugin with OpenJDK6 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2010 19:18:21 -0000 On Monday 13 September 2010 02:03 pm, Ivan Voras wrote: > On 13 September 2010 19:54, Jung-uk Kim wrote: > > On Friday 10 September 2010 07:32 pm, Ivan Voras wrote: > >> On 11 September 2010 01:00, Jung-uk Kim wrote: > >> > On Friday 10 September 2010 06:13 pm, Ivan Voras wrote: > >> >> But I cannot start for example this one: > >> >> > >> >> http://java.sun.com/applets/jdk/1.4/demo/applets/ArcTest/exam > >> >>ple 1.h tml > >> > > >> > Probably you want to test it locally: > >> > > >> > file:///usr/local/openjdk6/demo/applets/ArcTest/example1.html > >> > >> Yes, the local copy works. So it is just failing to load applets > >> over the network? Could this be some convoluted Java security > >> problem? > > > > I believe it just timed out for your environment.  In fact, there > > is a > > If it is a timeout, it's a very quick one - well under a second. If you want to debug it further, you can set 'ICEDTEAPLUGIN_DEBUG' environment variable and see what's going on, i.e., env ICEDTEAPLUGIN_DEBUG=1 firefox3 Plugin-side trace will be printed on stdout. Java-side trace will be logged in ~/.icedteaplugin/java.stderr and ~/.icedteaplugin/java.stdout. > > reverse problem, i.e., some applets do not work locally when they > > want to open local files. > > E.g., /usr/local/openjdk6/demo/applets/MoleculeViewer/ > > and /usr/local/openjdk6/demo/applets/WireFrame/ fail because they > > cannot open files in subdirectory (models).  If anyone can > > reproduce the same problem under Linux environment, please file > > an upstream PR here: > > > > http://icedtea.classpath.org/bugzilla/ > > > >> > BTW, IcedTea plugin is not 100% compatible with Sun/Oracle's. > >> >  Your mileage may vary. ;-) > >> > >> But the underlying Java is OpenJDK, right? > > > > Almost. ;-) There is a big missing piece for applet support in > > OpenJDK, i.e., Web Start.  IcedTea team imported Netx as a > > replacement but it is not quite drop-in replacement, IMHO: > > > > http://jnlp.sourceforge.net/netx/ > > http://langel.wordpress.com/2008/01/11/icedtea-and-netx/ > > I've tried your latest port > (http://people.freebsd.org/~jkim/icedtea/openjdk6-icedteanp2.tar.bz >2) and the problem with applet initialization / timeout remains, but > the mutex "CPU eating" problem appears to be solved. Thanks for testing! > I hope you can get some of those patches applied upstream :) I'll try but I am not sure the author would accept non-Linux distro patches. Maybe I can convince him with "Debian GNU/kFreeBSD should be supported" or "NPTL is not POSIXly correct" argument, though. :-/ Jung-uk Kim