2. Setting up JAVA_HOME

For starting the application you need to set the JAVA_HOME environment variable to the path where JDK is installed.

To set JAVA_HOME on Microsoft Windows:

  1. Right click My Computer.
  2. Click Properties.
  3. Click the Advanced tab (or click Advanced system settings in Windows Vista.)
  4. Click the Environment Variables.
  5. Under System variables, click New.
  6. Set Variable name to JAVA_HOME and Variable value to the path of JDK (C:\Program Files\Java\jdk1.8.0_05).
  7. Click OK.
  8. Click OK on the Advanced tab to close the window.
     


To verify if your JAVA_HOME is set, follow the steps below :
Open a command prompt and type java -version and you should see something as shown below:

C:\>java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
C:>

To set JAVA_HOME on Linux:

  1. Open a terminal and login as the user who can start Celoxis application.
  2. In the appropriate profile file (e.g. .bash_profile or .profile), type: export JAVA_HOME=/usr/java/jdk1.8.0_05
    ( You need to replace the /usr/java/jdk1.8.0_05 with the path where you have installed Java) 
  3. Save the file.
  4. Logout and Login again.

To verify if your JAVA_HOME is set, follow the steps below :
Open the Linux shell and type $JAVA_HOME/bin/java -version and you should see something as shown below :

$ JAVA_HOME/bin/java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
$


Points to note
:

  1. Always verify that the JAVA_HOME variable is set properly by verifying the steps mentioned above. If it is set correctly, the version of Java will be printed. Else, you should get an error.
  2. For v8.0, we only support Java SDK 8. 
  3. Only one version of Java should be installed on your server where you are installing Celoxis.
  4. If your operating system is 32-bit, you will have to download 32-bit Java. Similarly, 64-bit OS will need 64-bit Java.