Please follow the exact steps listed below for creating a new version of JDK Grid Library for the respective OS and bitness:-
- Create a temporary directory named jdk-<platform>-<jdkversion>-gridlib. For example, jdk-linux64-1.8.0.131-gridlib
- Create a subdirectory named j2sdk inside the directory created in step 1.
- Download the JDK installer for required platform from http://www.oracle.com/technetwork/java/javase/downloads/index.html . Archive versions can be downloaded from http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html.
- Extract the downloaded JDK in the j2sdk folder created in step 2.
- Create a grid-library.xml. Refer to the example under the section 'grid-library.xml format' below for more details on this.
- Add the grid-library.xml file created in step 5 inside the directory created in step 1.
- Create an archive of the directory created in step1, named as jdk-<platform>-< jdkversion >-gridlib.tar.gz. For example, jdk-linux64-1.8.0.131-gridlib.tar.gz. Ensure that the grid-library.xml file is at the top level of the newly created archive.
- Upload the archive created in step 7 to Silver fabric broker at {SF_HOME}/webapps/livecluster/deploy/resources/gridlib
grid-library.xml format: <?xml version="1.0" encoding="UTF-8"?>
<grid-library jre="true" os="<platform>">
<grid-library-name>j2sdk-<platform></grid-library-name>
<grid-library-version><jdkversion ></grid-library-version>
</grid-library>
Example grid-library.xml for reference,
<?xml version="1.0" encoding="UTF-8"?>
<grid-library jre="true" os="linux64">
<grid-library-name>j2sdk-linux64</grid-library-name>
<grid-library-version>1.8.0.131</grid-library-version>
</grid-library>
NOTE: If any of your existing component(s) needs to use this newly created JDK grid library, in addition to copying the file on the broker, please make sure you also manually change the JDK gridlibrary version on the respective components to point to the new version of the gridlibrary and publish the changes for it to take effect.