Wednesday, January 7, 2009

Setting JDK(Java Development Kit)

For you who are confused on how to install / jdk use on your computer, please follow these steps: CMIIW (Correct Me If I'm Wrong)

When you have to get / download jdk, then you will get a directory containing the tools. As an example we consider that directory named "jdk" In this directory there is a directory "bin" which contains the programs to be able to run Java. All you need to do is put the address of the directory "jdk" and "bin" to that earlier in the environment variable. You need a 2-setting environment variables for the jdk, namely to create a new variable called JAVA_HOME with the value address direkroti "jdk" earlier and add value to the path variable with an address directory "bin" before.

Windows Users
Put your jdk directory anywhere. For example, eg C: \ jdk
Open System Properties (WinKey + PauseBreak), then go to the Advanced tab. Click the Environment Variables. Then at the bottom (System Variables) Click New.
then fill with the variable name JAVA_HOME. Variable value and content of his address to the directory you jdk. In accordance with the above example, the variable value here fill me with the "C: \ jdk \" Then click OK

Then in System Properties, variable search path. Select a variable and click Edit. In the variable value, add a semicolon ";" and add the address of the directory "bin" which is in the directory you jdk. With the example above, then I tambahkah is C: \ jdk \ bin.

Suppose you put in your jdk D: \ MyFolder \ jdk1.6, then you add a "D: \ MyFolder \ jdk1.6 \ bin"

To test it, at the Command Prompt, type echo% JAVA_HOME% or echo% path% to see if the variable-pitch has been setting the correct.

Linux Users
Put your jdk, eg in / root / jdk /
Open the Terminal / Console you, and then type:

export JAVA_HOME = / root / jdk /


Change the "/ root / jdk" with the directory where you placed the jdk. Then type again:

export PATH = $ PATH: / root / jdk / bin /


To test type echo $ JAVA_HOME or echo $ PATH


2 comments:

Anonymous said...

JDK is the virtual environment for java, to build a java application,
this is nice explanation

Anonymous said...

Where cen i get the JDK, I wan't to download it....