Setting JAVA_HOME
Following Opsgenie Integration tools require JAVA_HOME :
Following Opsgenie Integration tools require "Oracle JRE version 1.8 and above or OpenJDK version 8 and above":
Windows
- Check if JAVA_HOME is already set ,
- Open Command Prompt
- Execute : SET JAVA_HOME
- If output is JAVA_HOME=path, then your JAVA_HOME is set , make sure the path is correct
- If output is "Environment Variable JAVA_HOME not defined" , then execute following steps
- Make sure you have installed Java already
- Click the Windows icon located in your taskbar (This icon is also commonly known as the "Windows Start Button") or press the Windows key on the keyboard, then type This PC, when it appears in the start menu Right-click on the This PC icon on your desktop, then select Properties
- Click the Advanced Tab
- Click the Environment Variables button
- Under System Variable, click New
- Enter the variable name as JAVA_HOME
- Enter the variable value as the install path for the Java ( Sample : C:\Program Files\Java\jre1.8.0_04)
- You can also change the value later on by using Edit button.
- Click OK
- Click Apply / Apply Changes ( if active )
- Open a New Command Prompt
- Execute : "SET JAVA_HOME"
- Output should be like JAVA_HOME=path
Linux
Install for Single User :
- Check if JAVA_HOME is already set ,
- Open Console
- Execute : echo $JAVA_HOME
- If output is a path , then your JAVA_HOME is set , make sure the path is correct
- If output is empty , then execute following steps
- Make sure you have installed Java already
- Execute: vi ~/.bashrc OR vi ~/.bash_profile
- add line : export JAVA_HOME=/usr/java/jre1.8.0_04
- save the file
- source ~/.bashrc OR source ~/.bash_profile
- Execute : echo $JAVA_HOME
- Output should print the path
Install for all users :
- Login as root or execute commands with sudo
- Execute: bash
- Execute: vi /etc/bashrc OR vi /etc/profile
- do the same steps as done for single user
Updated over 1 year ago