2.1. How to install the JDK?
Last updated: 27 January 2013.
This page will show you how to install the JDK on Windows, Linux and Mac.
2.1.1. Installation process for Windows users
Just follow these steps:
- Go to the official website and download the JDK installation executable file. There are several items in the download page but you only need one for now and its name should look like Java SE 7ux wherein x is a minor upgrade version number.
- When the download is complete, follow the installation instructions.
- When the installation is complete, open a command prompt, type javac -version and press enter. If the JDK is correctly installed, the version of the installed Java compiler is printed to the standard output.
2.1.2. Installation process for Linux users
There are two ways of installing the JDK:
- You can download the JDK from the official website (its name is Java SE 7ux wherein x is a minor upgrade version number) and then follow the installation instructions.
- Alternatively, you can install the OpenJDK which is a free and open source implementation of the Java platform. For example, for Ubuntu users, the package name is openjdk-7-jdk.
2.1.3. Installation process for Mac users
The installation process is very simple. Download the latest JDK from the official website (its name is Java SE 7ux wherein x is a minor upgrade version number) and follow the installation instructions. When the installation is complete, open a terminal (Launchpad -> Utilities -> Terminal), type javac -version and press enter. The version of the installed Java compiler should be printed to the standard output.
The next tutorial will show you how to write your first Java program, compile and run it.
You are here :
JavaPerspective.com >
Beginner Tutorials >
2. Getting Started >
2.1. How to install the JDK?
Next tutorial : JavaPerspective.com > Beginner Tutorials > 2. Getting Started > 2.2. Hello World program
Next tutorial : JavaPerspective.com > Beginner Tutorials > 2. Getting Started > 2.2. Hello World program