Skip to main content
nmathur
Staff
Staff
August 31, 2021

Technical Tip: Failure to deploy license while FortiSOAR is being deployed due to an unsupported Java version

  • August 31, 2021
  • 0 replies
  • 1661 views

Description

 
This article describes a failure to deploy a FortiSOAR license during the FortiSOAR deployment process if an unsupported version of Java is installed on your CentOS. It will show errors such as:
 
....
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/fortinet/api/fcp/FCPClient has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
....
....
 
This issue also displays the following 'Failed to sync with FDN' error on the FortiSOAR UI:

JeanPhilippe_P_0-1724048024524.png

 

 

Solution

 

Check the Java version on the system using the following command:


java -version


The output of this command should be similar to: openjdk version "11.0.12" 2021-07-20 LTS. If the output is different, then it is necessary to change the Java version using the following command:


update-alternatives --config java

 

This command lists all the Java versions present on the system. Based on the FortiSOAR release, select the appropriate version of Java.
For newer FortiSOAR releases (7.4.4 and later), select 'java-17-openjdk'.
For older FortiSOAR releases (prior to 7.4.4) select  'java-11-openjdk'.

Once having selected the correct version of Java, deploy the FortiSOAR license and then continue with configuring FortiSOAR.