Header javaperspective.com
JavaPerspective.com  >   Beginner Tutorials  >   2. Getting Started  >   2.1. How to install the JDK?

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:
  1. 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.

  2. When the download is complete, follow the installation instructions.

  3. 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:When the installation is complete, open a terminal, type javac -version and press enter. The version of the installed Java compiler should be printed to the standard output.


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

Copyright © 2013. JavaPerspective.com. All rights reserved.  ( Terms | Contact | About ) 
Java is a trademark of Oracle Corporation
Image 1 Image 2 Image 3 Image 4 Image 5 Image 6 Image 7