Error: java: cannot execute binary file upgrading Policy Server JVM
search cancel

Error: java: cannot execute binary file upgrading Policy Server JVM

book

Article ID: 249695

calendar_today

Updated On:

Products

CA Single Sign On Federation (SiteMinder) SITEMINDER

Issue/Introduction

When running a Policy Server and upgrading the JVM version, the following command cannot be executed properly:

  smuser@hostexample:/tmp/jdk8u292-b10/jre/bin$ ./java -version

The command reports an error:

  -bash: ./java: cannot execute binary file

The JDK package is:

  OpenJDK8U-jdk_s390x_linux_hotspot_8u292b10.tar.gz

 

Cause

 

The file name OpenJDK8U-jdk_s390x_linux_hotspot_8u292b10.tar.gz stands for an s390 IBM for the mainframe (1).

Trying to run this JDK version on a Linux with an Intel processor, the error can be reproduced:

  smuser@hostexample:/tmp/jdk8u292-b10/jre/bin $ ./java -version
  -bash: ./java: cannot execute binary file: Exec format error

Looking at the processor model the binary has been compiled for, the "file" command reports IBM S/390:  

  smuser@hostexample:/tmp/jdk8u292-b10/jre/bin $ file ./java
  ./java: ELF 64-bit MSB shared object, IBM S/390, version 1 (SYSV), dynamically linked, interpreter /lib/ld64.so.1, for GNU/Linux 2.6.32, not stripped

The Linux OS runs on an Intel Xeon processor (x64):

  smuser@hostexample:/tmp/jdk8u292-b10/jre/bin $ cat /proc/cpuinfo
  processor       : 0
  vendor_id       : GenuineIntel
  cpu family      : 6
  model           : 85
  model name      : Intel(R) Xeon(R) Gold 6138 CPU @ 2.00GHz

The Linux kernel has been compiled for that processor version too:

  smuser@hostexample:/tmp/jdk8u292-b10/jre/bin $ uname -a
Linux hostexample.domainexample.com 3.10.0-1160.71.1.el7.x86_64 #1 SMP Wed Jun 15 08:55:08 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

 

Resolution

Install the latest 1.8 JDK version available for "x64" instead of "s390" processor to solve the issue (2).

 

Additional Information

 

(1)

    System/390 Announcement
    

(2)
    
    Eclipse Temurin Latest Releases