My webMethods Server 10.3 | My webMethods Server Webhelp | Administering My webMethods Server | Startup and Configuration | Changing the My webMethods Server Configuration | Specifying the Java Location for My webMethods Server
 
Specifying the Java Location for My webMethods Server
My webMethods Server must point to a Java location. By default, My webMethods Server points to the location of the JDK installed in the Software AG_directory /jvm directory.
You can specify a non-default JDK or JRE to be used by My webMethods Server. 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.
Note:
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.
To specify a non-default JDK or JRE, you must make changes in multiple locations.
Setenv File under /MWS/bin/
You must modify the Java location specified in the setenv.bat or .sh file located here:
Software AG_directory /MWS/bin/setenv.[bat | sh]
Open the setenv.bat or setenv.sh file in a text editor. Edit the JAVA_HOME parameter to point to the non-default JDK or JRE installation directory, then save and close the file. For example:
set JAVA_HOME= C:\myjava17
Setenv File under /profiles
You must modify the Java location specified in the setenv.bat or .sh file located here:
Software AG_directory /profiles/MWS_serverName/bin/setenv.[bat | sh]
Open the setenv.bat or setenv.sh file in a text editor. Edit the JAVA_EXEC parameter to point to the non-default JDK or JRE installation directory, then save and close the file. For example:
set JAVA_EXEC= "C:\myjava17\bin\java"
The wrapper.conf File
You must modify the Java location specified in the wrapper.conf file located here:
Software AG_directory /profiles/MWS_serverName/configuration/wrapper.conf
Open the wrapper.conf file in a text editor. Edit the wrapper.java.command parameter to point to the non-default JDK or JRE installation directory, then save and close the file. For example:
wrapper.java.command=C:\myjava17\bin\java
The custom_wrapper.conf File
You must modify the Java location specified in the custom_wrapper.conf file located here:
Software AG_directory /profiles/MWS_serverName/configuration/custom_wrapper.conf
Open the custom_wrapper.conf file in a text editor. Edit the set.JAVA_HOME parameter to point to the non-default JDK or JRE installation directory, then save and close the file. For example:
set.JAVA_HOME=C:\\ myjava17