WebSphere Issues

28/08/2010

Install and configure Java in linux

Filed under: Linux — Ishtiaque @ 7:43 am

1. Change the directory by running the cmd “cd /usr/java

2. Change the user as root by running the cmd “su – root

3. Chagne the permission of the downloaded JRE file as “chmod a+x jre-6u<version>-linux-i586-rpm.bin"

4. Run the file as “./jre1.6.0_16-linux-i586-rpm.bin"

5. update-alternatives –install /usr/bin/java java /usr/java/jre1.6.0_16/bin/java 500

6. update-alternatives –config java

7. Type the desired jre option and enter.

8. Edit the file /etc/profile and append the line:

PATH=/usr/java/jre1.6.0_17/bin:$PATH

9. Restart the machine and verify it by typing java -version.

References:

1. http://ubuntuforums.org/showthread.php?t=297770

2. http://php.ptagis.org/wiki/index.php/Define_java_in_Redhat_linux_using_alternatives

3. http://news.softpedia.com/news/How-to-Install-Java-in-Fedora-Core-6-39724.shtml

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

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 )

Google+ photo

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

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: