From nobody@FreeBSD.org  Wed Aug 12 23:57:43 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 99836106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Aug 2009 23:57:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 8899E8FC53
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Aug 2009 23:57:43 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7CNvhhB091472
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Aug 2009 23:57:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n7CNvhTi091471;
	Wed, 12 Aug 2009 23:57:43 GMT
	(envelope-from nobody)
Message-Id: <200908122357.n7CNvhTi091471@www.freebsd.org>
Date: Wed, 12 Aug 2009 23:57:43 GMT
From: Glen Barber <glen.j.barber@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] Handbook Section 6.2.2: Firefox and Java plugin covers Java JRE, not JDK
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         137703
>Category:       docs
>Synopsis:       [patch] Handbook Section 6.2.2: Firefox and Java plugin covers Java JRE, not JDK
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    blackend
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 13 00:00:18 UTC 2009
>Closed-Date:    Tue Aug 18 08:11:52 UTC 2009
>Last-Modified:  Tue Aug 18 18:10:01 UTC 2009
>Originator:     Glen Barber
>Release:        8.0-BETA2
>Organization:
>Environment:
FreeBSD orion 8.0-BETA2 FreeBSD 8.0-BETA2 #11 r195886: Sun Jul 26 05:27:01 EDT 2009     root@orion:/usr/obj/usr/src/sys/ORION  i386
>Description:
Section 6.2.2, Firefox and Java, assumes the user has the java/diablo-jre* port installed.  The plugin location differs when using java/diablo-jdk*.

http://www.freebsd.org/doc/en/books/handbook/desktop-browsers.html#MOZ-JAVA-PLUGIN
>How-To-Repeat:

>Fix:
The attached patch notes the location when using jdk versus jre differs, providing the correct absolute path.




Patch attached with submission follows:

--- handbook/desktop/chapter.sgml.orig	2009-08-12 19:12:30.000000000 -0400
+++ handbook/desktop/chapter.sgml	2009-08-12 19:40:57.000000000 -0400
@@ -232,6 +232,12 @@
       <screen>&prompt.root; <userinput>ln -s /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \
   /usr/local/lib/browser_plugins/</userinput></screen>
 
+      <para>If you are using the <application>Diablo &jdk;</application>
+	package, the plugin location is different than above:</para>
+
+      <screen>&prompt.root; <userinput>ln -s /usr/local/diablo-jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so \
+  /usr/local/lib/browser_plugins/</userinput></screen>
+
       <para>Then relaunch your browser.</para>
     </sect2>
 


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->blackend 
Responsible-Changed-By: blackend 
Responsible-Changed-When: Thu Aug 13 13:30:57 UTC 2009 
Responsible-Changed-Why:  
Let's grab it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137703 

From: Glen Barber <glen.j.barber@gmail.com>
To: bug-followup@FreeBSD.org, blackend@freebsd.org
Cc:  
Subject: Re: docs/137703: [patch] Handbook Section 6.2.2: Firefox and Java 
	plugin covers Java JRE, not JDK
Date: Thu, 13 Aug 2009 10:02:42 -0400

 Hi,
 
 One thing I left out of the patch is regarding the
 /usr/local/lib/browser_plugins/ directory. The Handbook does not
 mention if this directory needs to be manually created, but it does
 not exist on my system (by any installed www/firefox port).  However,
 I am not certain if www/firefox* will look there if it exists, which
 is why I did not change those lines in the patch.  The reason I bring
 this up is that I had to use /usr/local/lib/firefox3/plugins/ or
 /usr/local/lib/firefox/plugins/, respectively.
 
 -- 
 Glen Barber

From: Marc Fonvieille <blackend@FreeBSD.org>
To: Glen Barber <glen.j.barber@gmail.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: docs/137703: [patch] Handbook Section 6.2.2: Firefox and Java
 plugin covers Java JRE, not JDK
Date: Fri, 14 Aug 2009 22:54:19 +0200

 On Thu, Aug 13, 2009 at 10:02:42AM -0400, Glen Barber wrote:
 > Hi,
 > 
 > One thing I left out of the patch is regarding the
 > /usr/local/lib/browser_plugins/ directory. The Handbook does not
 > mention if this directory needs to be manually created, but it does
 > not exist on my system (by any installed www/firefox port).  However,
 > I am not certain if www/firefox* will look there if it exists, which
 > is why I did not change those lines in the patch.  The reason I bring
 > this up is that I had to use /usr/local/lib/firefox3/plugins/ or
 > /usr/local/lib/firefox/plugins/, respectively.
 >
 
 If /usr/local/lib/browser_plugins/ exists, java package will "install" a
 link in that directory so we don't need anymore to mention the 'ln -s ...'
 Of course, that means one must have a
 /usr/local/lib/browser_plugins directory before installing the java
 package.
 But this link is not enough with Firefox 3.5 (did not recheck with other
 version of Firefox).
 
 If I do a
 
 ln -s /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \
 	$HOME/.mozilla/plugins/
 
 it works.  I wonder if it's the same with other Firefox versions.  Could
 you check if
 
 ln -s /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \
 	$HOME/.mozilla/plugins/
 
 (or jdk)
 
 is enough in your case as well?  I think it's simplier than adding a
 link to /usr/local/lib/firefox3/plugins/ or
 /usr/local/lib/firefox/plugins/
 
 -- 
 Marc

From: Glen Barber <glen.j.barber@gmail.com>
To: Marc Fonvieille <blackend@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: docs/137703: [patch] Handbook Section 6.2.2: Firefox and Java 
	plugin covers Java JRE, not JDK
Date: Fri, 14 Aug 2009 18:51:08 -0400

 Hi, Marc
 
 Yes, the following does work (tested on Firefox 3.0.11):
 
 ln -s /usr/local/diablo-jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so \
  $HOME/.mozilla/plugins/
 
 Personally, I like that idea better than separate cases for
 /usr/local/lib/firefox*/ or /usr/local/lib/browser_plugins/
 
 -- 
 Glen Barber
State-Changed-From-To: open->closed 
State-Changed-By: blackend 
State-Changed-When: Tue Aug 18 08:10:25 UTC 2009 
State-Changed-Why:  
Ok, I modified this section according to the audit-trail, i.e., use of 
$HOME/.mozilla/plugins/ and addition of diablo-jdk1.6.0 link case. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=137703 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/137703: commit references a PR
Date: Tue, 18 Aug 2009 08:10:33 +0000 (UTC)

 blackend    2009-08-18 08:10:12 UTC
 
   FreeBSD doc repository
 
   Modified files:
     en_US.ISO8859-1/books/handbook/desktop chapter.sgml 
   Log:
   Update the Firefox & Java plugin section:
   
   - Fix the ln(1) command to really allow the detection of the installed
     plugin by Firefox;
   - Add the ln(1) command example in case of JDK installation [1]
   
   PR:             docs/137703 [1]
   Submitted by:   Glen Barber <glen.j.barber@gmail.com> [1]
   
   Revision  Changes    Path
   1.90      +10 -4     doc/en_US.ISO8859-1/books/handbook/desktop/chapter.sgml
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Glen Barber <glen.j.barber@gmail.com>
To: bug-followup@FreeBSD.org, glen.j.barber@gmail.com
Cc:  
Subject: Re: docs/137703: [patch] Handbook Section 6.2.2: Firefox and Java 
	plugin covers Java JRE, not JDK
Date: Tue, 18 Aug 2009 14:00:04 -0400

 Marc,
 
 The JDK link should be:
 
 % ln -s /usr/local/diablo-jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so \
 $HOME/.mozilla/plugins/
 
 The doc points it to:
 
 % ln -s /usr/local/diablo-jdk1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \
   $HOME/.mozilla/plugins/
 
 
 
 -- 
 Glen Barber
>Unformatted:
