Filed in archive
Programming
by gautam on October 13, 2006

# mkdir -p /usr/local/java
# cd /usr/local/java
# mv /path/to/jre-1_5_0_05-linux-amd64.bin .
# chmod u+x jre-1_5_0_05-linux-amd64.bin
# ./jre-1_5_0_05-linux-amd64.bin
In case you require the Java installation to be site wide then it must be installed as root but in case you require it for self then the package should be extracted in ~/bin/java or some other location. In the above case the JRE has been installed in /usr/local/java/jre1.5.0_05/.
Now run java executable as a quick test:
# cd jre1.5.0_05/bin
# ./java -version
Further in order to make Java available to everybody, it should be added to the default PATH settings by editing /etc/profile and adding:
PATH=$PATH:/usr/local/java/jre1.5.0_05/bin
JAVA_HOME=/usr/local/java/jre1.5.0_05
export $PATH $JAVA_HOME
Finally you are all set to use Java on your Linux system.
Permalink: Get Java on Your Linux System
Trackback: http://publish.creative-weblogging.com/publish/mt-tb.pl/39079
Mr Wong
Vote for Get Java on Your Linux System:
|
Rating: 3.83 out of 6 vote(s) cast.
|
Response from:
Allen
(10/18/06 12:22pm)
Your instructions bypass the package management infrastructure of your linux distribution. It is much preferable to get Java from your distribution, or at least packaged by a 3rd party for your distribution, e.g., JPackage.
Subscribe
Use the search to look for other interesting posts
| RSS | See all blog subscribe options |
|
What is RSS? | |
| Yahoo! |
|
| Addthis |
|
| Bloglines |
|
| Newsletter | |
| Follow us on Twitter! |










