In this brief tutorial we will see how to install OpenJDK 7.0  on Ubuntu 11.10 Oneiric Ocelot. If you want to install Java 6, you can check this tutorial.

Getting Started

Open the terminal and run this command to install OpenJDK 7.0 on Ubuntu Oneiric:

sudo apt-get install openjdk-7-jre

Run now this command if you want to select which Java version to use:

sudo update-alternatives --config java

To install the Java 7 web browser plugin, via the terminal run these commands (Ubuntu 32-bit):

mkdir -p ~/.mozilla/plugins
ln -s /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/

For Ubuntu (64-bit), isssue these commands:

mkdir -p ~/.mozilla/plugins
ln -s /usr/lib/jvm/jdk1.7.0/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/

Post a Comment