Installing the Java Development Kit and Eclipse

The Java Development Kit

Developing Java programs requires that the Java Development Kit (JDK) be installed on your machine.

Windows and Linux Machines

The JDK (version 8, update 101) for Windows or Linux machines can be obtained here, for free:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Note: If you have the 32-bit version of Windows, the installation file you wish to use from the above site is the "Windows x86" version: jdk-8u101-windows-i586.exe, whereas if you have the 64-bit version of Windows, the installation file you wish to use will be the "Windows x64" version: jdk-8u101-windows-x64.exe. To find out which version of Windows you have, go to the start menu, right-click "Computer" and then "Properties". Then look at what is listed under "System type".

To allow yourself to run java programs from the Windows command line, you will also want to update your PATH environment variable.

Mac OS X

As some of the previous versions of the Mac OS have done, Mac OS X ships with a Java runtime and development environments already installed. The version of Java is very similar to the version released by Sun except that it slightly lags behind the latest release for Java on other platforms, and is configured by Apple to be tightly integrated with the Mac OS X (which creates some minor differences between the two environments).

That said, if you want the latest and greatest version of Java, you can download it from the same page given above:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
The download link you seek is for "Mac OS X x64" and is named "jdk-8u101-macosx-x64.dmg". Simply save the file to your desktop or downloads folder, and then double-click it to begin the installation process.

Handy Tip   To find out where java was installed, open up the Terminal application and type /usr/libexec/java_home


The Eclipse IDE

While not required to develop Java programs, an integrated development environment (IDE) makes doing so a vastly more efficient process. Eclipse is considered to be the choice du jour of IDEs by many professional programmers.

To get started with Eclipse, you should install the "Eclipse IDE for Java Developers" which can be found here:

http://www.eclipse.org/downloads/