DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th February 2009
whetphish whetphish is offline
BSD Daemon
 
Join Date: Feb 2009
Location: Bath, England, UK
Posts: 7
Thanked 0 Times in 0 Posts
Exclamation Java 1.6 plugin not working with Firefox 3

Hi,

I use FreeBSD 7.1-RELEASE with Firefox 3.0.5 and am having some trouble getting the Java VM working.

I have tried both the diablo-jre16 and diablo-jdk16 ports with the javavmwrapper installed. I tried the diablo ports installed individually and together, and have tried installing them both from source and the packages on the FreeBSD Foundation website.

At all times there has been a link called libjava_oji.so in /usr/local/lib/browser_plugins either pointing to /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so or the equivalent libjavaplugin_oji.so from the diablo-jdk16 port.

Whatever I seem to try the Java VM doesn't work in Firefox 3 and is not listed in about:plugins. A look at about:config shows the following ...

Quote:
java.default_java_location_others default string /usr/java
java.default_java_location_solaris default string /usr/j2se
java.global_java_version_file default string /etc/.java/versions
java.global_plugin_library_name default string javaplugin_oji
java.private_java_version_file default string ~/.java/versions
security.enable_java default boolean true
I tried changing java.global_plugin_library_name to javaplugin_oji.so and even /usr/local/lib/browser_plugins/javaplugin_oji.so to no avail. I restarted Firefox after every change too.

Does anyone have any other ideas? I haven't yet tried the diablo-jre15 and diablo-jdk15 ports but would prefer to use the later version.

Thanks in advance,
whetphish.
Reply With Quote
  #2   (View Single Post)  
Old 10th February 2009
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 841
Thanked 36 Times in 32 Posts
Default

Are you sure that browser plugins are in JRE 1.6? On OpenBSD they are in JRE 1.5 for
which you must compile JDK 1.5 due to the license issues. Those are not distributed as
binaries unlike JDK 1.6. SUN did NOT open source browser plugins. Even on Linux you have to go to
SUN web site and get SUN's Java and agree to its license if you want to have working plugins.
Open Java has some plugins but of what I heard from RedHat people they are not usable.
Reply With Quote
  #3   (View Single Post)  
Old 10th February 2009
whetphish whetphish is offline
BSD Daemon
 
Join Date: Feb 2009
Location: Bath, England, UK
Posts: 7
Thanked 0 Times in 0 Posts
Default

Hi Oko,

Thanks for your reply. I'm a bit confused as to the license situation, but the browser_plugins directory does contain a symlink to the libjavaplugin_oji.so in the diablo-jre16 port (or diablo-jdk16 port if I install that) and this is all I needed in a previous version of FreeBSD with the 1.5 plugin.

All the other plugins in the browser_plugin directory seem to work fine in Firefox 3. Maybe I should contact the port maintainers to see if they are aware of any issues. They might be able to clarify the plugin license situation too.

I did have to manually download jce_policy-6.zip and tzupdater-1_3_11-2008i.zip from Sun, agreeing to their license. I also had to manually download diablo-caffe-freebsd7-i386-1.6.0_07-b02.tar.bz2 and diablo-latte-freebsd7-i386-1.6.0_07-b02.tar.bz2 from the FreeBSD Foundation website agreeing to a separate license (negotiated with Sun).

Regards,
whetphish.
Reply With Quote
  #4   (View Single Post)  
Old 10th February 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

If you read the notes that show up when you install the JRE, you'll know that it doesn't automatically install the needed links to enable the plugin. This is due to each version of the JRE using the same name for the plugin.

So, you need to manually symlink the plugin .so that you want to use into ~/.mozilla/plugins/

For example, the following enabled JRE 1.6.0 plugin for Firefox:
$ ln -s /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so ~/.mozilla/plugins/

Obviously, change the directory to match the browser that you use.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #5   (View Single Post)  
Old 11th February 2009
whetphish whetphish is offline
BSD Daemon
 
Join Date: Feb 2009
Location: Bath, England, UK
Posts: 7
Thanked 0 Times in 0 Posts
Talking Thank you!

Thanks very much Pheonix, I created ~/.mozilla/plugins, created the symlink and it worked a treat!

I wasn't aware that you could put plugins in ~/.mozilla/plugins as my other plugins are installed in /usr/local/lib/browser_plugins and the Java one wouldn't work from there.

Thanks again,
whetphish.
Reply With Quote
  #6   (View Single Post)  
Old 23rd February 2009
DrumScum DrumScum is offline
New User
 
Join Date: Oct 2008
Posts: 5
Thanked 0 Times in 0 Posts
Default

Is there any particular reason why Fx3 doesn't take the symlink in /usr/local/lib/browser_plugins? Seems a bit odd to me...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xine plugin ccc FreeBSD Ports and Packages 1 1st November 2008 11:11 PM
Upgrading firefox to firefox 3 -keeping plugins+bookmarks kasse FreeBSD Ports and Packages 11 5th July 2008 01:34 PM
Gnash & Firefox plugin mururoa FreeBSD Ports and Packages 8 28th May 2008 09:16 PM
linux-firefox and java plugin Spartan FreeBSD Ports and Packages 3 19th May 2008 08:55 AM
firefox(linux ) not working. bsdnewbie999 FreeBSD General 2 15th May 2008 01:21 PM


All times are GMT. The time now is 03:32 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick