LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to enable/configure java in firefox (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-enable-configure-java-in-firefox-812315/)

Bringo 06-05-2010 10:12 AM

Unable to enable/configure java in firefox
 
Hi, I am here again with a java problem..
Code:

[root@localhost ~]# java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)

This means jre is installed but when I want to verify from http://www.java.com/en/download/installed.jsp, I always get :
Code:

Something is wrong. Java is not working.
So I installed jre again following the instructions at the mentioned site.But I don't know how to enable/configure it with firefox. Instructions for this on the site are:
Code:

Firefox or Mozilla

  1. Create a symbolic link to the libjavaplugin.so file in the browser plugins directory
          * Go to the plugins sub-directory under the Firefox installation directory
            cd <Firefox installation directory>/plugins

          * Create the symbolic link
            ln -s <Java installation directory>/plugin/i386/
            ns7/libjavaplugin_oji.so

            In the ln command line above, use ns7-gcc29 if Firefox was compiled with gcc2.9.

      If you install Firefox 1.5 or later, you can enable the Java Console menu item in the Tools menu. Change directories to the Firefox extensions directory, then unzip ffjcext.zip there.

But I don't find any plugins directory in firefox's installation directory, see:
Code:

[root@localhost firefox-3.0.11]# ls /usr/lib/firefox-3.0.11/
application.ini          chrome      extensions  LICENSE                          README.txt      update.log  update.status
blocklist.xml            components  firefox    modules                          run-mozilla.sh  updater.ini
browserconfig.properties  defaults    icons      old-homepage-default.properties  searchplugins  updates

Please help me. Thanks

Nylex 06-05-2010 10:25 AM

You could use the plugins directory in your home directory, ~/.mozilla/plugins. Obviously, this will install the plugin for a single user. My firefox directory in /usr/lib has a plugins directory, so it may be ok to create that directory. I'm not sure on this, however. Maybe look at Mozilla's Firefox support page?

knudfl 06-05-2010 10:28 AM

Firefox will look in /usr/lib/mozilla/plugins/
... for all 'plugins'.

Code:

ln -n <location>//plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
EDIT : Or ~/.mozilla/plugins/ as said by @Nylex.

Bringo 06-05-2010 10:52 AM

Thanks. Now I saw this at the site's verification page:
Code:

Verified Java Version
Congratulations!
You have the recommended Java installed (Version 6 Update 20).

Thanks again.


All times are GMT -5. The time now is 05:13 PM.