I recently couldn’t get Java to work under Chrome. Hopefully this can help someone else with the same problem.

Make sure you have java installed. You can do this by running

yum list jre

in the terminal. If it is installed it will be listed under “Installed packages.”

If you do not have Java installed, you can download it here. The download is a .bin file. Navigate to the folder you downloaded it to and issue the command:

chmod +x jre-6u##-linux-i586-rpm.bin

Substitute ## for the update number you downloaded, currently it would be

chmod +x jre-6u27-linux-i586-rpm.bin

(This allows the file to be executed as a program.)

Extract and install JRE by running

sudo bash jre-6u##-linux-i586-rpm.bin

Again substituting ## for the update you downloaded.
So currently it would be

sudo bash jre-6u27-linux-i586-rpm.bin

You will be asked if you want to replace the JRE RPM. I selected yes. You also have the option of no, all, none and rename.

Once you have JRE installed, or if it was already installed, create a link between JRE’s plugin file and Firefox’s plugins folder by issuing this in a terminal.

sudo ln -s /usr/java/jre1.6.0_##/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so

Again, make sure to substitute ## for the current update number so it would be (currently)

ln -s /usr/java/jre1.6.0_27/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so

Restart Chrome. You can check if Java is working here.

How to get JRE (Java) working under Chrome Fedora
Tagged on:                                                                                                                                                                                                                                                                     

Leave a Reply

Recommend on Google