Set Amazon Corretto 8 as the default Java environment
Use Amazon Corretto 8 as the default JDK for VIS.
Amazon Corretto 8 is a production-ready version of Java that comes with free, long-term support. It is fully compatible with the Java SE standard, ensuring reliability and security.
This guide contains instructions for installing and configuring Coretto 8 on CentOS/RHEL Linux distributions and Windows Server.
CentOS/RHEL
Follow the steps below to install Amazon Corretto 8 and set it as the default Java environment on a Linux OS:
Import the Corretto signing key:
sudo rpm --import https://yum.corretto.aws/corretto.keyAdd the Corretto repository:
sudo curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo|https://yum.corretto.aws/corretto.repoInstall the Corretto 8 JDK:
sudo yum install java-1.8.0-amazon-corretto-devel-1.8.0_462.b08-1.x86_64Configue the Java environment:
sudo alternatives --config javaSelect "coretto" when prompted.
Verify Corretto 8:
which javaThe
which javacommand should return/usr/bin/java.java -versionThe
java -versioncommand should showCoretto.Restart Tomcat:
sudo systemctl restart tomcatVerify Tomcat:
grep "Java Home" catalina.outYou should see output similar to the following:
2025-10-13 13:20:28,980 [main] INFO org.apache.catalina.startup.VersionLoggerListener- Java Home: /usr/lib/jvm/java-1.8.0-amazon-corretto/jre
Windows Server
Follow the steps below to install Amazon Corretto 8 and set it as the default Java environment on a Windows OS:
Download the Windows 64-bit JDK.msi file.
Run the MSI file to install Coretto 8.
Set the JAVA_HOME system variable to
<install path>\jdk1.8.0_462\bin:setx JAVA_HOME "<install path>\jdk1.8.0_462" /MOpen the Configure Tomcat application and set the Tomcat JRE to point to the Corretto JRE (
<install path>\jdk1.8.0_462\jre\bin\server\jvm.dll), as shown below:Restart Tomcat to complete the process.
