From owner-freebsd-gecko@FreeBSD.ORG Thu Sep 9 19:24:04 2010 Return-Path: Delivered-To: gecko@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 462F110656E3; Thu, 9 Sep 2010 19:24:04 +0000 (UTC) (envelope-from beat@FreeBSD.org) Received: from marvin.chruetertee.ch (marvin.chruetertee.ch [217.150.245.55]) by mx1.freebsd.org (Postfix) with ESMTP id E52BF8FC16; Thu, 9 Sep 2010 19:24:03 +0000 (UTC) Received: from daedalus.network.local (124-73.76-83.cust.bluewin.ch [83.76.73.124]) (authenticated bits=0) by marvin.chruetertee.ch (8.14.3/8.14.3) with ESMTP id o89JO2LA060512 (version=TLSv1/SSLv3 cipher=DHE-DSS-CAMELLIA256-SHA bits=256 verify=NO); Thu, 9 Sep 2010 19:24:02 GMT (envelope-from beat@FreeBSD.org) Message-ID: <4C893454.6050100@FreeBSD.org> Date: Thu, 09 Sep 2010 21:24:04 +0200 From: Beat Gaetzi User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.12) Gecko/20100907 Lightning/1.0b1 Thunderbird/3.0.7 MIME-Version: 1.0 To: Jung-uk Kim References: <4C890E19.1040808@FreeBSD.org> <201009091500.15935.jkim@FreeBSD.org> In-Reply-To: <201009091500.15935.jkim@FreeBSD.org> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: gecko , freebsd-java@FreeBSD.org Subject: Re: Request for help: OpenJDK6 IcedTea Java plugin X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2010 19:24:04 -0000 On 09.09.2010 21:00, Jung-uk Kim wrote: > On Thursday 09 September 2010 12:40 pm, Beat Gaetzi wrote: >> Hi, >> >> Due to a lot of user request I've started working on a port for the >> OpenJDK6 IcedTea Java plugin which works with Firefox 3.6. As I >> never used the Java plugin and I'm not very experienced in the Java >> world I need some help. >> >> Some parts of the port are taken from java/openjdk6 and pkgsrc. The >> shar file of the current port is available here: >> http://people.freebsd.org/~beat/patches/icedtea6-plugin.shar >> >> I've tested the port on FreeBSD 8.1 amd64 and i386. The plugin was >> recognized after creating a symlink in ~/.mozilla/plugins/: >> # ln -s /usr/local/lib/netscape/plugins/IcedTeaPlugin.so >> ~/.mozilla/plugins/ >> >> Screenshot of about:plugins in Firefox 3.6: >> http://tmp.chruetertee.ch/firefox-icedtea.png >> >> When I tried to watch a Java applet the browser crashed: >> >> Exception in thread "main" java.lang.IllegalAccessError: tried to >> access class sun.applet.AppletMessageHandler from class >> sun.applet.PluginAppletViewer >> at >> sun.applet.PluginAppletViewer.(PluginAppletViewer.java:2163 >> ) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstru >> ctorAccessorImpl.java:57) at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegatin >> gConstructorAccessorImpl.java:45) at >> java.lang.reflect.Constructor.newInstance(Constructor.java:532) at >> java.lang.Class.newInstance0(Class.java:372) >> at java.lang.Class.newInstance(Class.java:325) >> at >> sun.applet.PluginStreamHandler.(PluginStreamHandler.java:85) >> at sun.applet.PluginMain.connect(PluginMain.java:155) >> at sun.applet.PluginMain.(PluginMain.java:137) >> at sun.applet.PluginMain.main(PluginMain.java:116) >> >> So I copied the content of >> www/icedtea6-plugin/work/icedtea6-1.8/liveconnect to >> /usr/local/lib/netscape/plugins/ (This step isn't done by the port >> yet as I don't know if this is the correct location) set the >> CLASSPATH environment variable but it crashed again: >> >> # mv /usr/ports/www/icedtea6-plugin/work/icedtea6-1.8/liveconnect/* >> /usr/local/lib/netscape/plugins/ >> # setenv CLASSPATH /usr/local/lib/netscape/plugins/ >> # firefox3 >> openjdk version "1.6.0" >> OpenJDK Runtime Environment (build 1.6.0-b20) >> OpenJDK Client VM (build 17.0-b16, mixed mode) >> Exception in thread "main" java.lang.IllegalAccessError: tried to >> access class sun.applet.AppletMessageHandler from class >> sun.applet.PluginAppletViewer >> at >> sun.applet.PluginAppletViewer.(PluginAppletViewer.java:2163 >> ) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstru >> ctorAccessorImpl.java:57) at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegatin >> gConstructorAccessorImpl.java:45) at >> java.lang.reflect.Constructor.newInstance(Constructor.java:532) at >> java.lang.Class.newInstance0(Class.java:372) >> at java.lang.Class.newInstance(Class.java:325) >> at >> sun.applet.PluginStreamHandler.(PluginStreamHandler.java:85) >> at sun.applet.PluginMain.connect(PluginMain.java:155) >> at sun.applet.PluginMain.(PluginMain.java:137) >> at sun.applet.PluginMain.main(PluginMain.java:116) >> >> Does anyone knows how to fix this problem? >> >> There are also some parts (marked with a comment) in the port >> makefile which needs some review or improvement. > > Wow, I was working on it, too. And I was going to announce it today > when I am done cleaning up the ports. :-) You can see some > screenshots of mine from here: > > http://people.freebsd.org/~jkim/icedtea/screenshots/ These screenshots looks much better then my exception :) > FYI, you have to apply few patches from IcedTea6 distribution, i.e., > patches/extensions/*.patch. Specifically, you have to patch Java > Runtime to make NetX working with OpenJDK6. Please see netx.patch. I will take a look at this patch and I'm glad to test your port soon. Thanks for working on this! Beat