OneData 10.7 | Managing Master Data with webMethods OneData | Administering webMethods OneData | Customizing OneData | Changing the Default Java Location for OneData
 
Changing the Default Java Location for OneData
OneData must point to a Java location. By default, OneData points to the location of the JDK installed in the Software AG_directory/jvm directory.
You can specify a non-default JDK or JRE for OneData to use. If you do so, do not delete the default JDK because it is used by the Software AG Installer.
Important:
If you specify a non-default JRE or JDK, apply maintenance updates from the appropriate vendor on a regular basis, as you would for JREs and JDKs you install yourself.
Software AG tests products only with the JDKs installed by the Software AG Installer. If you redirect products to use a different JDK or JRE and encounter issues, Software AG might require you to reproduce the issues with the JDK that is installed by the Software AG Installer.
You must change the following files to point to the non-default JDK or JRE installation directory:
*Software AG_directory/profiles/ODE /bin/setenv.bat or setenv.sh
*Software AG_directory/profiles/ODE/configuration/wrapper.conf
*Software AG_directory/profiles/ODE/configuration/custom_wrapper.conf
*To specify a non-default JDK or JRE:
1. Navigate to Software AG_directory/profiles/ODE /bin/.
2. Open either of the following files in text editor and change the Java location to point to the non-default JDK or JRE installation directory:
File Name
Parameter to Change...
Example
setenv.bat
JAVA_EXEC
set JAVA_EXEC= "C:\myjava17\bin\java”
Where, C:\myjava17 is the non-default JDK or JRE installation directory.
setenv.sh
LD_LIBRARY_PATH
LD_LIBRARY_PATH=/home/release/
installer/ OSGI-AUTO/jvm/jvm
/jre/lib/amd64/server:/home/release/
installer/OSGI-AUTO/jvm/jvm/jre/lib/
amd64:${LD_LIBRARY_PATH}:/home/
release/ installer/OSGI-AUTO/
common/security/ssx/lib
Where, all instances of /home/release/installer/OSGI-AUTO/jvm/jvm are the non-default JDK or JRE installation directory.
3. Save and close the edited setenv.bat or setenv.sh file.
4. Navigate to Software AG_directory/profiles/ODE/configuration/ and do the following:
a. Open the wrapper.conf file in a text editor and change the wrapper.java.command parameter to point to the non-default JDK or JRE installation directory.
For example:
wrapper.java.command=C:\myjava17\bin\java
b. Save and close the edited wrapper.conf file.
c. Open the custom_wrapper.conf file in a text editor and change the JAVA_HOME parameter to point to the non-default JDK or JRE installation directory.
For example:
set.JAVA_HOME=C:\\ myjava17
d. Save and close the edited wrapper.conf file.