In this article
The Snaplex Linux installers include a bundled OpenJDK-based JRE 11 distribution. You can follow the instructions in this document to change the Java version on your Linux and Windows Snaplex instances. You might need to change the Java version to update the JRE in order to receive security and functionality fixes in the newer JRE distribution. Even if your organization has a license for a different JRE distribution, you can use the procedure in this article to configure the Groundplex to use the said JRE.
We support only Java 11-based distributions; Java 12 or newer versions are not yet certified by SnapLogic. Java 8 or earlier versions are not supported. |
To update the JRE version on your Groundplex node:
|
To update the JRE version:
$ sudo /opt/snaplogic/bin/jcc.sh stop
$
rpm -U --force snaplogic-snaplex.rpm
$
dpkg -i snaplogic-snaplex.deb
$ sudo /opt/snaplogic/bin/jcc.sh start
.The Snaplex will start with the JRE bundled along with the SnapLogic installer.
The Snaplex installer defaults to openjdk-11.0.12+7-jre
. To update to a JRE installed at another location, create a file /etc/sysconfig/jcc
with SL_JAVA_HOME
pointing to the desired JRE location.
To create the /etc/sysconfig
directory and /etc/sysconfig/jcc
file as well as grant read permissions to all users, run the following command:
sudo mkdir -p /etc/sysconfig; sudo sh -c "echo 'export SL_JAVA_HOME=/opt/snaplogic/pkgs/jdk-11.0.12+7-jre/' >> /etc/sysconfig/jcc" |
Change |
To update the Java version on Windows:
c:\opt\snaplogic\bin\jcc.bat stop
c:\opt\snaplogic
:\opt\snaplogic\bin\jcc.bat
file and update the JAVA_HOME to point to the location of the Java 11 installation.If you are running the Snaplex as a service, run the following commands: jcc.bat remove_service
jcc.bat install_service
Run the following command:
c:\opt\snaplogic\bin\jcc.bat start
After you configure Java, go to the SnapLogic Dashboard and verify that the Additional Information dropdown list displays the Java version as 11.0.12+7 or higher.
When updating the Java version on a node or when adding a new node to a Snaplex, any customizations done on the node will have to be manually copied over, including the following:
If you are using configuration management tools like Puppet/Chef/Ansible, then making these changes in the IAC configuration ensures that new node provisioning is automated.