Freitag, 9. Januar 2015

Configure Firefox Java Browser plugin

Although Java might be installed on your Oracle Linux system, your browser might not know Java.
So, this is how to get your firefox up to speed.

1. Identify Java Install locations (Remember this document - No. 7)

Become User "root":

$ su -Password:
# 

Query the standard java directory on Oracle Linux:

# ls -l /usr/java/
total 8
lrwxrwxrwx. 1 root root   16 Jan  9 13:24 default -> /usr/java/latest
drwxr-xr-x. 8 root root 4096 Jan  9 13:49 jdk1.7.0_71
drwxr-xr-x. 9 root root 4096 Jan  9 13:40 jdk1.8.0_25
lrwxrwxrwx. 1 root root   21 Jan  9 13:40 latest -> /usr/java/jdk1.8.0_25


2. Find Mozilla Firefox Plugin Directory

2.1 Check your browser binary version
This is important, where to find the library!
(Firefox must be running.)

# ps -ef|grep firefox
root     12536 28294  0 14:53 pts/4    00:00:00 grep firefox
oracle   13105     1  6 11:51 ?        00:11:57 /usr/lib64/firefox/firefox


Mine is 64bit, so I have to use the 64bit plugin.

2.2 Navigate to standard Mozilla plugin directory

# cd /usr/lib64/mozilla/plugins

3. Check for existing symbolic links to the mozilla plugin

First check, if there is a link to the libnpjp2.so file:

# ls
libflashplayer.so  libtotem-cone-plugin.so  libtotem-mully-plugin.so
libnpjp2.so        libtotem-gmp-plugin.so   libtotem-narrowspace-plugin.so


4. Close your Firefox Browser!


5 Remove existing symbolic link

rm libnpjp2.so
rm: remove symbolic link `libnpjp2.so'? y


6 Create new symbolic link

# ln -s /usr/java/jdk1.7.0_71/jre/lib/amd64/libnpjp2.so

7 Test your Java Browser Plugin

Open Firefox and open Java Test Page:
https://www.java.com/en/download/help/testvm.xml
The output should be similar to mine:

Verified Java Version

Completion checkmark

Congratulations!

You have the recommended Java installed (Version 7 Update 71).

Keine Kommentare: