NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To set the environmental variables in Linux, follow these steps:

  1. As the root user, enter the following in the /etc/profile file. A PATH variable should already be created in this file, so be sure to define the JAVA_HOME and export before the PATH export.

    Replace

     Replace <some_path>

    with the

     with the correct path fragment for Java installations. 

    Code Block
    export JAVA_HOME=<some_path>/jdk1.8.0_101

     
    export PATH=$JAVA_HOME/bin:$PATH
  2. Log out and log back in so that the system recognizes your changes.

Verifying the Environment Variables in Linux

...