Compiler Check

This assignment is designed to make sure that the Java compiler (JDK) is correctly installed on your machine.

Open a terminal window or command prompt. (In Windows XP or newer, Start Menu | All Programs | Accessories | Command Prompt) Then type, in order, the commands below.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\>javac -version

You will see one of two things. If the JDK / Java compiler is correctly installed, you should see a version number like so:

C:\>javac -version
javac 1.7.0_04

The exact version number doesn't matter, as long as it starts with "1.6" or higher.

However, if the JDK isn't installed, then you'll see an error like so:

C:\>javac -version
'javac' is not recognized as an internal or external command,
operable program or batch file.

If you're at home, I've got instructions for installing the JDK that you can read.

If you're using a computer inside Leander I.S.D., then you should be able to open the "LISD Applications" window and install "JDK 6u21" (or any newer version that's listed).

Once you've got the JDK installed, close the command prompt, open the comment prompt again, and try once more:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\>javac -version
javac 1.7.0_04

Success!




©2013 Graham Mitchell

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Creative Commons License