How to install and configure Java in Linux
- Open a terminal and change the directory in to /opt with using
cd /opt
command
- Drag and drop jdk-1_5_0-linux-i586.bin file in to terminal.
- Now you can see path and file name all r in terminal. Now give click on terminal and hit enter.
- Then you have to agree the licence agreement. Hold enter key until it end.
- When it end u'll b asked a question yes or no; type yes and hit enter
- Now you can see some installation process.
- After all you can see a folder named jdk1.5.0 in opt
- Now in terminal type
gedit /etc/profile.d/java.sh
- Now enter following two lines and click save.
export J2RE_HOME=/opt/jdk1.5.0
export PATH=$J2RE_HOME/bin:$PATH
- When you start your machine next time paths will automatically set. [If you cant wait so long type those two lines in a terminal and start works]
- To make the the internet browser Java capable, type this command in terminal and hit enter
To Mozilla
ln -s /opt/jdk1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
To Firefox
ln -s /opt/jdk1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-0.10.1/plugins/libjavaplugin_oji.so
S Kasun Chathuranga
May 5, 2006 23:38