From owner-freebsd-java@FreeBSD.ORG Tue Oct 30 22:45:16 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFEB116A418; Tue, 30 Oct 2007 22:45:16 +0000 (UTC) (envelope-from lists@swaggi.com) Received: from rusty.swaggy.net (rusty.swaggy.net [204.14.85.196]) by mx1.freebsd.org (Postfix) with ESMTP id C88ED13C480; Tue, 30 Oct 2007 22:45:16 +0000 (UTC) (envelope-from lists@swaggi.com) Received: from localhost ([127.0.0.1] helo=swaggi.com) by rusty.swaggy.net with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1ImzDT-000IBc-7q; Tue, 30 Oct 2007 18:05:44 -0400 From: "Yuri Lukin" To: freebsd-current@freebsd.org Date: Tue, 30 Oct 2007 17:05:43 -0500 Message-Id: <20071030220251.M82173@swaggi.com> In-Reply-To: <20071029235020.M75001@swaggi.com> References: <20071029235020.M75001@swaggi.com> X-Mailer: swaggi.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: freebsd-java@freebsd.org Subject: Re: Firefox Java plugin with 7.0? 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: Tue, 30 Oct 2007 22:45:17 -0000 On Mon, 29 Oct 2007 19:05:34 -0500, Yuri Lukin wrote > I'm like to ask what people are using for Java plugin with Firefox. > There were a few recent threads on this subject but no definitive answer: > > http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078038.html > http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078492.html > > I tried compiling jdk15 port and was able to build it and install it > successfully. However, when trying to load a java applet in Firefox, > the browser seemingly crashes (exits). I then tried following the > method described in the handbook by downloading the diablo-jre-freebsd6.i386.1.5.0.07.01.tbz > package from FreeBSD Foundation website and adding it with pkg_add. > Trying to load java applets crashes Firefox. In both cases, > javavmwrapper was installed and about:plugins in Firefox shows that > java plugin is installed. Is there a working combination for 7.0-PRERELEASE/BETA? > > My system is: > > # uname -a > > FreeBSD 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Mon Oct 15 > 13:02:17 EDT 2007 swaggy@:/usr/obj/usr/src/sys/T61 i386 > # pkg_info | grep java > javavmwrapper-2.3 Wrapper script for various Java Virtual Machines > # pkg_info | grep firefox > firefox-2.0.0.8,1 Web browser based on the browser portion of Mozilla > > # ls -la /usr/local/lib/browser_plugins/ > total 96 > drwxr-xr-x 2 root wheel 512 Oct 29 19:22 . > drwxr-xr-x 54 root wheel 31232 Oct 29 13:26 .. > -rw-r--r-- 1 root wheel 0 Oct 20 00:20 .firefox.keep > lrwxr-xr-x 1 root wheel 63 Oct 29 19:22 libjavaplugin_oji.so - > > /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so - > rwxr-xr-x 1 root wheel 62192 Sep 12 14:21 npwrapper.libflashplayer.so > > Currently with jre from FreeBSD foundation site: > # pkg_info | grep jre > diablo-jre-1.5.0.07.01 Java Runtime Environment 1.5.0_07.01 > I found an answer off-list. In case anyone is wondering, I had to first install java/diablo-jdk15 (with compat6x), then install java/jdk15. After that, I simply removed diablo-jdk15 and added a symlink to /usr/local/lib/browser_plugins in order for Firefox to recognize the browser plugin. Works great now. Many thanks to Vlad Galu for the answer. Yuri