Saturday, November 15, 2014

Getting Started with Java's Hello World: Part I

This tutorial will cover installation of Java 7 (1.7.0_25), Maven 3 (3.1.0) and Eclipse 4 (4.3) to run your first Java Program (ie Hello World).

Install Java

Here we will install Java 7 which will include the Java Development Kit (jdk) for Windows. Java is typically installed in the Programs folder (ie "C:\Program Files\Java"). For 64-bit machines, you may have a separate 32-bit version of Java in the "Program Files (x86)" folder.  By right clicking on My Computer and selecting Properties, I saw that Windows was 32-bit. Therefore, I installed a 32-bit version of java. I googled "download 32 bit version of Java for Windows Vista", clicked on Java SE Downloads (Oracle), clicked on JDK Download Button, went to Java SE Development Kit 7u25 (Standard Edition, version 1.7.0_25), accepted the license agreement and clicked on jdk-7u25-windows-i586.exe next to Windows x86 (32-bit).
  1. Downloading the installer to your Desktop.
  2. Run the installer.
This created the "C:/Program Files/Java/jdk1.7.0_25/" and "C:/Program Files/Java/jre7/" folders.  To verify you can run Java 7 (ie 1.7.0_25):
  1. Opened a command prompt.
  2. Start Menu->Run->Type "cmd"->OK.
  3. Type the following command: java -version
The command prompt should show the Java Version you just installed. Continue onto Getting Started with Java's Hello World: Part II.

This post was reposted from http://scottizu.wordpress.com/2013/08/14/getting-started-with-javas-hello-world-part-i/, originally written on August 8th, 2013.

No comments:

Post a Comment