When you install isCOBOL, it asks you for the location of the Java installation, and saves this path in a file or files. Then all the executable wrappers installed in the %isCOBOL%/bin folder look for this file to find Java.
If you install a new version or type of Java (OracleJDK to OpenJDK, for instance), you just need to change the path saved in this file to redirect all of the wrappers to the new Java. The path should be changed in two places, one for the compiler and one for the runtime.
This file is named and located in different place in the Windows and UNIX/Linux installations:
Windows
The compiler uses a batch file to set the JDK path. Open %ISCOBOL%\bin\isshell.bat in a text editor, and change the value of ISCOBOL_JDK_ROOT and ISCOBOL_JRE_ROOT to your new Java installation.
For example, in C:\Veryant\isCOBOL_SDK2022R2\bin\isshell.bat, change these two lines:
set ISCOBOL_JDK_ROOT=C:\Program Files\Java\OpenJ9_80.232.09 set ISCOBOL_JRE_ROOT=C:\Program Files\Java\OpenJ9_80.232.09
C:\Program Files\Java\jdk1.8.0_241To
C:\Program Files\Java\OpenJ9_80.232.09UNIX/Linux
ISCOBOL_JDK_ROOT=/opt/jdk8u242-b08 ISCOBOL_JRE_ROOT=/opt/jdk8u242-b08To
ISCOBOL_JDK_ROOT=/usr/lib/jvm/java-8-openjdk-amd64 ISCOBOL_JRE_ROOT=/usr/lib/jvm/java-8-openjdk-amd64
Article ID: 309
Created: April 1, 2020
Last Updated: February 1, 2023
Author: Support KB Author
Online URL: https://support.veryant.com/phpkb/article.php?id=309