How to install Oracle Java 7 on Pear Linux 7 manually
I know its a bit annoying for some people to install application manually in Linux. But, personally I prefer doing this way so I can learn more about Linux OS. This tutorial will show you how to install the latest version of Oracle Java 7 update 17 on Pear Linux 7 manually. Java is an important application for Linux to play and display rich website content. You may encounter errors when trying to open a Java enabled website or web page.
Steps to install Java on Pear Linux 7
Select the Linux64 version on that page since the new Pear Linux 7 is a 64 bit system.
Step 2. Extract the package
Once the download process is finished, you need to extract the package (.tar.gz) into java directory which is usually in /usr
sudo tar xzvf jre-7u17-linux-x64.tar.gz
The command will produce a new directory called jre1.7.0_17
sudo mkdir /usr/javasudo mv jre1.7.0_17 /usr/java
Now we need to create symbolic link for the java binary
sudo ln -s /usr/java/jre1.7.0_17/bin/java /usr/bin/java
Now check if java correctly installed
java -version
it should produce something like this
live@live:/usr/java/jre1.7.0_17/bin$ java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
At this point, java is correctly installed on Pear Linux 7.
Enjoy