nmathur
Staff
Created on
08-31-2021
01:33 AM
Edited on
08-18-2024
11:15 PM
By
Jean-Philippe_P
Article Id
191974
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
....
....
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
....
....
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'.
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.
Labels: