Software Development

Developing with OpenSource and Microsoft Technologies

How to install JDK in Linux

leave a comment »

A classmate has told me that he had problems installing JDK in Linux, we just need to install them in the right way, these are the steps:

1.- Create a folder in your system, and then enter into a terminal.

[edison@localhost ~]$ su 
[root@localhost edison]# cd /home 
[root@localhost home]# cd edison 
[root@localhost edison]# cd Java


Download JDK 6 and put it inside the folder you have created.

[root@localhost JAVA]# chmod +x jdk-6u14-linux-i586.bin 
[root@localhost JAVA]# ./jdk-6u14-linux-i586.bin

[root@localhost JAVA]# JAVA_HOME="/home/edison/JAVA/jdk1.6.0_14" 
[root@localhost JAVA]# PATH=${PATH}:jdk1.6.0_14/bin


If we put the java –version command to verify wheter we have done it fine.

[root@localhost JAVA]# java –version


java version "1.6.0_14"

Java(TM) SE Runtime Environment (build 1.6.0_14-b08)

Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode)

We can also use to verify.

root@localhost JAVA]# javac



Written by mredison

August 2, 2009 at 1:44 pm

Posted in Linux

Leave a Reply

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

You are commenting using your 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

%d bloggers like this: