...
- Right click My Computer.
- Click Properties.
- Click the Advanced tab (or click Advanced system settings in Windows Vista.)
- Click the Environment Variables.
- Under System variables, click New.
- Set variable Variable name to JAVA_HOME and variable Variable value to the path of JDK (C:\Program Files\Java\jdk1.68.0_1405).
- Click OK.
- 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_HOME%\bin\java -version and and you should see something as shown below:
Code Block |
---|
c:> "%JAVA_HOME%\bin\java"C:\>java -version java version "1.68.0_1405" Java(TM) SE Runtime Environment (build 1.68.0_1405-b08b13) Java HotSpot(TM) Client64-Bit Server VM (build 1425.05-b16b02, mixed mode, sharing) cC:> |
To set JAVA_HOME on Linux:
- Open a terminal and login as the user who can start Celoxis application.
- In the appropriate profile file (e.g. .bash_profile or .profile), type: export JAVA_HOME=/usr/java/jdk1.68.0_14 05
( You need to replace the /usr/java/jdk1.68.0_14 with 05 with the path where you have installed Java) - Save the file.
- 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 :
Code Block |
---|
$ $JAVAJAVA_HOME/bin/java -version java version "1.68.0_1405" Java(TM) SE Runtime Environment (build 1.68.0_1405-b08b13) Java HotSpot(TM) Client64-Bit Server VM (build 1425.05-b16b02, mixed mode, sharing) $ |
Points to note:
- 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.
- We currently support JDK 6 only.For v8.0, we only support Java SDK 8.
- Only one version of Java should be installed on your server where you are installing Celoxis.
- If your operating system is 32-bit, you will have to download 32-bit Java. Similarly, 64-bit OS will need 64-bit Java.