Class04 Answer:

Test your installation of Java.

To test my installation of Java, I tried these shell commands:

which java
echo $JAVA_HOME

I should see something like this:

dan@a78:~ $
dan@a78:~ $
dan@a78:~ $ which java
/home/dan/jdk/bin/java
dan@a78:~ $
dan@a78:~ $
dan@a78:~ $ echo $JAVA_HOME
/home/dan/jdk
dan@a78:~ $
dan@a78:~ $
dan@a78:~ $

Next, I tried running a simple Java command:

java -version

I should see something like this:

dan@a78:~ $ java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
dan@a78:~ $
dan@a78:~ $

Class04 Lab


learn4.us About Blog Contact Class01 Class02 Class03 Class04 Class05 Class06 Class07 Class08 Class09 Class10 dan101 Forum Google Hangout Vboxen