JDK and IDE FAQs Java Methods Home Page Skylight Publishing




Getting Started with Java under Windows*


*For Mac users: Apple supplies their own version of Java.  Use the Software Update feature (available on the Apple menu) to check that you have the most up-to-date version of Java for your Mac.

Questions and Answers

What software do I need?
You need a Java compiler and an IDE.

What is a compiler?
A compiler translates Java code into bytecodes.

Where do I get it?
There is essentially only one Java compiler.  It is part of JDK (Java Development Kit) and it is available free for downloading from Oracle's web site.  The latest version, as of June 2012, is JDK 7, Update 4.  JDK also includes an interpreter that runs Java applications, appletviewer used for testing Java applets, a few other utility programs, and Java class libraries.

What is an IDE?
An IDE (Integrated Development Environment) serves as a front end for the Java compiler and interpreter.  It also includes an editor for writing Java code, a project maker, sometimes a debugger, all conveniently packaged into one program with a graphical user interface.

Where do I get an IDE?
Several free IDEs are available for downloading.  One, called NetBeans, is available from Oracle in a "cobundle" with the JDK.  However, it may be too cumbersome for a beginner programmer.  A popular choice is JCreator LE from Xinox software. It is compact, easy to use, and it is free.  JCreator LE, the free version, does not have a debugger, which we consider a plus (see Top Ten Reasons Not to Use a Java Debugger in School).  On the opposite end of the spectrum is Eclipse: a professisonal IDE, highly configurable and loaded with convenience features, also available free.  It will take some getting used to, though.  Eclipse runs on both PCs and Macs.

What else do I need?
Get very proficient with viewing, moving, deleting, and renaming files and folders in Windows Explorer.

Adjusting Windows Setup

Downloading JDK and Docs

  • To download JDK, go to

      http://www.oracle.com/technetwork/java/javase/downloads/index.html

    Click on the leftmost icon "Java -- Java Platform (JDK 7u4)" (or the latest available update).  Accept the license agreement, then click on the installation file appropriate for your system, for example, jdk-7u4-windows-x64.exe for 64-bit Windows.  Click Save in the dialog box that pops up and save the JDK installation file (about 92 MB) to the desktop or a folder of your choice.

    JDK includes the compatible version of JRE (Java Run-Time environment).

  • Now download the documentation.  To do that, return to the download page

      http://www.oracle.com/technetwork/java/javase/downloads/index.html

    Scroll all the way down to Java SE 7 Documentation and click Download.  Accept the license agreement and save jdk-7u4-apidocs.zip (or the latest version) (about 56 MB) to the desktop or a folder of your choice. 

Installing JDK and Docs

  • Install the JDK and documentation first, then an IDE.

  • To install the JDK, run the downloaded JDK file, for example
        jdk-7u4-windows-x64.exe
    and follow the instructions.  Accept all the defaults.  By default, the JDK is installed in the C:\Program Files\Java\jdk-... folder. 

  • Now install the documentation.  This may take several minutes.  Open the zipped documentation folder, for example
        jdk-7u4-apidocs.zip
    and copy its docs subfolder into the folder where JDK is installed (e.g., C:\Program Files\Java\jdk-..., in parallel with bin, lib, etc.). 

    Documentation can be accessed by opening the index.html file from the docs folder in a browser; it is also used for context-sensitive JDK help in IDEs.

Downloading and Installing JCreator

Running a Java Program in JCreator

Downloading and Installing Eclipse




Skylight Publishing
support@skylit.com