Installing JDK

From Initq

Jump to: navigation, search

Where to get it

Best link to get JDK from is

From the above link you may get any previous version also.

How to Install

we normally download jdk-6u15-linux-i586.bin and put it in /opt folder. That is where we unzip it.

qais@qais:/opt$ chmod +x jdk-6u15-linux-i586.bin
qais@qais:/opt$ ./jdk-6u15-linux-i586.bin
qais@qais:/opt$ cd jdk1.6.0_15/
qais@qais:/opt/jdk1.6.0_15$ ls
bin        include  README.html        register_zh_CN.html
COPYRIGHT  jre      README_ja.html     sample
db         lib      README_zh_CN.html  src.zip
demo       LICENSE  register.html      THIRDPARTYLICENSEREADME.txt
help       man      register_ja.html
qais@qais:/opt/jdk1.6.0_15$ mkdir help
qais@qais:/opt/jdk1.6.0_15$ cp src.zip help/
qais@qais:/opt/jdk1.6.0_15/help$ /opt/jdk1.6.0_15/bin/jar -xvf src.zip
qais@qais:/opt/jdk1.6.0_15/help$ mkdir test

We created a test directory to write our test code. You may create your sample code directory anywhere you like.

Directories

jdk
(main dir)
bin
(Compiler Interpreter and other executables)
demo
(Sub directories containing demo code)
include
(C header files for native code)
include-old
(not there in new jdk)
jre
(Java runtime)
jre/bin
(executable for runtime)
jre/bin/classic
(JVM DLL)
jre/bin/hotspot
(Hotspot JVM DLL)
jre/lib
(Class libraries)
jre/lib/ext
(Jar files containing extensions)
jre/lib/security
jre/lib/applet
lib
(Files used by executables)
Personal tools