Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products.

installation can’t find java on CentOs 7

    • grybka
      Subscriber

      I am trying to install ANSYS on CentOS 7.5 in a Docker container. When I click Install Electromagnetic Suite, I get the attached error below "This application require a Java Run Time Environment (JRE) to run. Searching for one on your computer was not successful. Please use the command line switch -is:javahome to specify a valid JRE

      java error when trying to install

      To locate my version of java, I used update-alternatives --config java. The command returned the following:

      There is 1 program that provides 'java'.

        Selection    Command
      -----------------------------------------------
      *+ 1           java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64/jre/bin/java)

      The install help command says that I should pass the directory containing bin/java as the argument.

      install help command

      So I ran ./install -is:javahome /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64/jre/

      But I get the same error message, where the installation can't find my java installation.

      How can I successfully install ANSYS on CentOs?

    • grybka
      Subscriber

      Here are the error messages I get on the terminal when I click Install Electromagnetic Suite


      /home/developer/Electronics_192_linx64/Linux/AnsysEM/disk1/setup.exe.IShield: line 158: bc: command not found
      /home/developer/Electronics_192_linx64/Linux/AnsysEM/disk1/setup.exe.IShield: line 1375: [: : integer expression expected

    • grybka
      Subscriber

       Well, it turns out the problem was the bc isn't installed in the base CentOS docker container. After installing bc (yum install -y bc), the installation moves forward.

    • tsiriaks
      Ansys Employee

      Hi grybka,

      Thanks for the update and resolution.

      If you haven't already done so, I would recommend to just install the full RedHat LSB package (yum install redhat-lsb) as you might come across other issues in the future.

      Thanks,

      Win

    • chenniu
      Subscriber

      Hi, 

      I have the similar issue. I have installed java and redhat-lsb and used -is:javahome and -is:log. Here is my log output. Please help thanks.

      Log file created by MultiPlatform installer @Tue Mar 31 12:49:56 EDT 2020

      INSTALLER_PATH=/home/chenniu/Shared/Electronics_201_linx64/Linux/AnsysEM/disk1/setup.exe.IShield

      running inner launcher=/tmp/ans_tempdir_4131/istemp4145091124956/setup.exe.embedded -isrig /home/chenniu/Shared/Electronics_201_linx64/Linux/AnsysEM/disk1 -is:javahome /usr/lib/jvm/java/jre/ -is:log /home/chenniu/Shared/log.txt -is:tempdir /tmp/ans_tempdir_4131

      Log file created by MultiPlatform installer @Tue Mar 31 12:49:57 EDT 2020

      INSTALLER_PATH=/tmp/ans_tempdir_4131/istemp4145091124956/setup.exe.embedded

      command line switch -is:javahome is specified. Verifying the JVM with the JVM files specifed with the launcher.

      JVM specified with -is:javahome cannot be verified with the JVM files specified with the launcher. Environment Variables will be checked next...

      Checking the environment variables specifed in the JVM files to find the JVM...

      No JVM can  be found using the shell environment variable. Searching JVM will continue with Path Hints specified in the JVM Files...

      jvm files not specified. Searching a JVM can not be performed.

      Extracting bundled JRE...

      checking disk space on the parition /tmp/ans_tempdir_4131/istemp4145091124957 for /tmp/ans_tempdir_4131/istemp4145091124957/jre-1_5_0_01-linux64.bin

      49182 512 bytes disk blocks required.

      66505240 512 bytes disk blocks  available on the partition /tmp/ans_tempdir_4131/istemp4145091124957

      Disk space check on the parition /tmp/ans_tempdir_4131/istemp4145091124957 succeeded.

      checking disk space on the parition /tmp/ans_tempdir_4131/istemp4145091124957 for /tmp/ans_tempdir_4131/istemp4145091124957/jre-1_5_0_01-linux64.bin

      137325 512 bytes disk blocks required.

      66455912 512 bytes disk blocks  available on the partition /tmp/ans_tempdir_4131/istemp4145091124957

      Disk space check on the parition /tmp/ans_tempdir_4131/istemp4145091124957 succeeded.

      installing bundled JRE...

      Verifying... /tmp/ans_tempdir_4131/istemp4145091124957/_bundledJRE_/bin/java -cp /tmp/ans_tempdir_4131/istemp4145091124957/Verify.jar Verify  java.vendor java.version

      Verification failed for /tmp/ans_tempdir_4131/istemp4145091124957/_bundledJRE_ using the JVM file /tmp/ans_tempdir_4131/istemp4145091124957/_bundledJRE_/jvm

    • tsiriaks
      Ansys Employee

      what is the output of

      cat /etc/*release

      and 

      env

    • chenniu
      Subscriber

      Thanks for the respond. It was CentOS8, I reinstalled on CentOS7 and it seems to work. 

    • tsiriaks
      Ansys Employee

      sounds good. Thanks for the update. Yes, CentOS/RH 8 is still not supported even by current ANSYS version (2020 R1)

    • wastl
      Subscriber
      I have the same problem with AnsysEm R21v2 and RHEL 8.2 and JRE. nI've tried openjdk8 and 11, also Oracles JRE with -is:javahome. But he cannot find java.nAll of the redhat-lsb and suggested 32bit Libs are in place. RHEL 8.2 updatednNo problem with with R21v2 and centos7 - but this version has no future.n
Viewing 8 reply threads
  • The topic ‘installation can’t find java on CentOs 7’ is closed to new replies.