Task 4: Install Java for the chat server

In this task, you will install Java (64-bit recommended) and then set the JAVA_HOME variable for the chat server. If you are using your own server and already have Java installed, set JAVA_HOME to the location of your JDK and follow step 6 only.

Follow these steps:

  1. This task uses the latest Java 8. Download the latest version of Java from the Java website.

  2. The system displays the welcome screen. Click Next.
  3. Accept the default installation folder (C:\Program Files\Java\jdk1.8.0_xx), and then click Next to start the Java installation process.

  4. On the JRE Destination Folder screen, accept the default installation folder (C:\Program Files\Java\jdk1.8.0_xx) and click Next.

  5. When the Java installation is complete, click Close.

  6. Add a new environment variable for the server. 

    Field Value
    Variable name JAVA_HOME
    Variable value C:\Program Files\Java\jdk.1.8.0_xx\
  7. Add another new environment variable as shown below.

    Field Value
    Variable name CLASSPATH
    Variable value C:\Program Files\Java\jdk.1.8.0_xx\lib\
  8. Edit the Path environment variable to append ;%JAVA_HOME%\bin\ to the end of the variable value.

  9. Click OK repeatedly to exit.