Problem 1.1

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 windows key + r -> cmd) Then type in 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.8.0_161

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. Once you install properly and add java to the PATH (on windows), close the command prompt and try this assignment again.


◄ 0: Installing the JDK 1.2: Creating Folders ►



Adapted from ProgrammingByDoing.com
©2013 Graham Mitchell

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