RSS

How to install sun java JDK

27 Dec
alternatives –install /usr/bin/java java /usr/java/jdk1.6.0_17/bin/java 100
alternatives –install /usr/bin/jar jar /usr/java/jdk1.6.0_17/bin/jar 100
alternatives –install /usr/bin/javac javac /usr/java/jdk1.6.0_17/bin/javac 100

Set JAVA_HOME / PATH for all user

You need to setup global config in /etc/profile OR /etc/bash.bashrc file for all users:
# vi /etc/profile
Next setup PATH / JAVA_PATH variables as follows:
export PATH=$PATH:/usr/java/jdk1.5.0_07/bin
export PATH=$PATH:/usr/java/jdk1.5.0_07/bin

Advertisement
 
Leave a comment

Posted by on December 27, 2009 in Linux Administration

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.