Bug 137703

Summary: [patch] Handbook Section 6.2.2: Firefox and Java plugin covers Java JRE, not JDK
Product: Documentation Reporter: Glen Barber <glen.j.barber>
Component: Books & ArticlesAssignee: Marc Fonvieille <blackend>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Glen Barber 2009-08-13 01:00:18 UTC
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

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




Patch attached with submission follows:
Comment 1 Marc Fonvieille freebsd_committer freebsd_triage 2009-08-13 14:30:57 UTC
Responsible Changed
From-To: freebsd-doc->blackend

Let's grab it.
Comment 2 Glen Barber 2009-08-13 15:02:42 UTC
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
Comment 3 Marc Fonvieille freebsd_committer freebsd_triage 2009-08-14 21:54:19 UTC
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
Comment 4 Glen Barber 2009-08-14 23:51:08 UTC
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
Comment 5 Marc Fonvieille freebsd_committer freebsd_triage 2009-08-18 09:10:25 UTC
State Changed
From-To: open->closed

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.
Comment 6 dfilter service freebsd_committer freebsd_triage 2009-08-18 09:10:33 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"
Comment 7 Glen Barber 2009-08-18 19:00:04 UTC
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