From owner-freebsd-gecko@FreeBSD.ORG Thu Sep 9 16:40:57 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 98BD410656E4 for ; Thu, 9 Sep 2010 16:40:57 +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 2BA308FC21 for ; Thu, 9 Sep 2010 16:40:56 +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 o89GetLQ053086 (version=TLSv1/SSLv3 cipher=DHE-DSS-CAMELLIA256-SHA bits=256 verify=NO); Thu, 9 Sep 2010 16:40:55 GMT (envelope-from beat@FreeBSD.org) Message-ID: <4C890E19.1040808@FreeBSD.org> Date: Thu, 09 Sep 2010 18:40:57 +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: freebsd-java@FreeBSD.org X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: gecko Subject: 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 16:40:57 -0000 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(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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. Thanks, Beat