Wednesday, May 30, 2007

Instaling Java in Mozilla Firefox on Linux

First you need to download the Java Runtime Environment (JRE) or the Java Development Kit (JDK) and install it.


The JRE is what you need to run java programs on your computer, but it doesn't allow you to develop in java, This is probably the more suited solution for you if you are not a developer, because is smaller the de JDK.

If you are a developer download the JDK (if you already don't have it already) which includes the JRE and adds the tools for developing.

To download you can go to:

http://java.sun.com/javase/downloads/index.jsp


Basically what we need to do is put a symbolic link for the plugin in the jre of either the JDK or the JRE, in Mozilla Firefox

-----------------------------------------------------------------------------------------------------
For JDK you must execute in the shell something like this:

# ln -s /path_to_jdk/jdkx.x.x_xx/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so

where you should replace "path_to_jdk" with the path to you JDK and replace "jdkx.x.x_xx" with the version of your JDK

----------------------------------------------------------------------------------------------------
For JRE you must execute in the shell something like this:

# ln -s /path_to_jre/jrex.x.x_xx/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so

where you should replace "path_to_jdk" with the path to you JDK and replace "jrex.x.x_xx" with the version of your JDK


And that's it, you can now see pages that use java components.

No comments: