Java - Java Development Kit (JDK)

> Procedural Languages > Java

1 - About

To create and compile Java applications, you need the full Java 2 Platform, Standard Edition, Software Development Kit (J2SE SDK), formerly known as the Java Development Kit (JDK).


3 - JDK

JDK Maintained by Description
OpenJDK Oracle previously Sun
HotSpot Oracle previously Sun
JRockit Oracle previously BEA tested and certified build of OpenJDK

4 - How to

4.1 - get it

To obtain the JDK, navigate your web browser to the download page of Oracle and click the Download JDK button.

4.3 - Law

4.4 - Install it

  • Download the bin (Self-Extracting Installation)
  • Make it executable
chmod +x jdk-6u18-linux-x64.bin
  • Change to the directory where you would like the files to be installed.
cd installDir
  • The Java Development Kit files are installed in a directory called jdk.6.0_<version> in the current directory.
./jdk-6u <version>-linux-x64.bin

4.5 - Check it

To be able to check a JDK and to return a message to the user, you need to compile the main class with a lower jdk.

You need then to compile your source code differently. See Configuring compile to run twice

4.6 - Licencing