Introduction to the Labs¶
Welcome to the lab exercises! Before you start any of the labs, you'll need a recent "build" (161 or later) of Java 8 installed.
Java 8 Only
You must have Java 8 installed as Java 9 or later can cause problems.
Java Installation Check¶
Let's first make sure that your Java Development Kit (JDK) is installed and available.
At the command prompt/terminal, type the following
java -version
If all is well, you'll see something like:
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
And let's make sure the Java compiler (javac
) is also working:
javac -version
Should result in something like:
javac 1.8.0_161
Problem?
If you get a "command not found", then Java either wasn't installed properly or is not on your path. See here for installation instructions and troubleshooting.