JDK and IDE FAQs Java Methods Home Page Skylight Publishing




Getting Started with Java under Windows

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 Sun Microsystems's web site.  The latest version, as of June 2009, is JDK 6.0, Update 14.  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 Sun 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://java.sun.com/javase/downloads/index.jsp

    Find JDK 6 Update 14 (or the latest available) and click Download.  In the pop-down menu, select Windows platform, and check “I agree to the Java SE Development Kit 6u14 License Agreement” and click Continue.  Check the “Java SE Development Kit 6u14” and click on the name of the file jdk-6u14-windows-i586.exe.  Click Save in the dialog box that pops up and save the JDK file (about 73 MB) to the desktop or a folder of your choice.

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

      http://java.sun.com/javase/downloads/index.jsp

    Scroll down to Java SE Documentation and click Download. Choose Documentation and English from the pull-down lists, click Continue, and download the zipped documentation file (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-6u14-windows-i586.exe
    and follow the instructions.  Accept all the defaults.  By default, the JDK is installed in the appropriate C:\Program Files\Java\jdk-... folder. 

  • Now install the documentation.  This may take up to one hour.  Open the zipped documentation folder, for example
        jdk-6u10-docs.zip
    and copy its docs subfolder into the folder where JDK is installed. 

    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

  • To download Eclipse, go to

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

    Download the zipped Eclipse SDK file (over 100 MB).  Unzip it into a folder of your choice (for example C:\Program Files\Eclipse).  Unzipping may take quite a while.

    Eclipse does not require other installation: just create a shortcut to eclipse.exe on your desktop.

    Detailed instructions for configuring and using Eclipse will be available soon.




Skylight Publishing
support@skylit.com