July 22, 2024
How to change the default Java in API Manager
Comments
(0)
July 22, 2024
How to change the default Java in API Manager
Staff 14 posts
Followers: 3 people
(0)

The ColdFusion API Manager typically comes with default Java versions (1.8.0_112 and 1.8.0_361). However, you may need to upgrade these versions. Since the ColdFusion API Manager is certified only with JDK 1.8 (at the time of writing this blog), we will download the latest JDK 1.8 version available on the Adobe Download page.

Step 1: Download the JDK 1.8u421 from the Adobe ColdFusion Downloads page and install it.

Step 2: In Linux, edit the “apimanager” script located at /opt/coldfusion2023apimanager/bin,  change the Java home path, and map it to the newly installed JDK path.

                    JAVA_EXECUTABLE=”/usr/lib/jvm/jdk-1.8-oracle-x64/bin/java”

For Windows OS:

Change the JAVA_HOME in the “jvm.config” file located at C: \ColdFusion2023APIManager\bin.

                    java.home=”C:\Program Files\Java\jre1.8.0_421\bin”

Step 3: In Linux based installation, edit the “elasticsearch” script located at /opt/coldfusion2023apimanager/database/analytics/bin, and change the Java home path.

                          #!/bin/sh

                         export JAVA_HOME=”/usr/lib/jvm/jdk-1.8-oracle-x64/jre”

For Windows OS-based installations, open the command prompt as an administrator, navigate to              C:\ColdFusion2023APIManager\database\analytics\bin, and run the command—service.bat manager

Now, change the jvm.dll path to the latest JDK 1.8 path installed on the server and click OK.

Step 4: After updating the Java paths, restart all the ColdFusion API services to apply the changes.

Following these steps will help you update the Java version of the ColdFusion API Manager. If you encounter any issues, feel free to reach out for further assistance.

0 Comments
Add Comment