Linux/Unix Environment Variables

FlexNet Code Insight 6.13.2

Perform the following steps to verify Linux/Unix environment variables.

To verify Linux/Unix environment variables:

1. After installing the JDK, verify that the JAVA_HOME and PATH variables are set correctly on the core and scan servers.
2. To determine your environment variables settings, enter the following on the command line:

echo $JAVA_HOME

echo $PATH

3. To find the exact path to your Java executable, enter the following:

which java

4. To set JAVA_HOME and PATH variables, open the file .bash_profile under /home/<user> and add the following text:

PATH=$PATH:$HOME/bin

export JAVA_HOME=/usr/java/<insert jdk name>

export PATH=/usr/java/jdk1.7.0_##/bin:/usr/java/<insert jdk name>/lib:$PATH export PATH