Follow this procedure to ensure that the TelephonyPresence Services can find the Java Runtime Environment (JRE).
Start the command prompt or terminal on Linux. (For Windows, click Start > Run. In the Run dialog type cmd and click OK.)
Type java -version., if the program is not found, continue with Step 2 to update the PATH. If the program is found, you can skip Step 2.
Setting up the Java Environment on Windows
Setting up the Java Environment on Linux