We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
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

      Trying to install Ansys Electronics RSM:

      cat /etc/*release

      NAME="Red Hat Enterprise Linux"

      VERSION="8.7 (Ootpa)"

      ID="rhel"

      ID_LIKE="fedora"

      VERSION_ID="8.7"

      PLATFORM_ID="platform:el8"

      PRETTY_NAME="Red Hat Enterprise Linux 8.7 (Ootpa)"

      ANSI_COLOR="0;31"

      CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"

      HOME_URL="https://www.redhat.com/"

      DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"

      BUG_REPORT_URL="https://bugzilla.redhat.com/"

       

      REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"

      REDHAT_BUGZILLA_PRODUCT_VERSION=8.7

      REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"

      REDHAT_SUPPORT_PRODUCT_VERSION="8.7"

      Red Hat Enterprise Linux release 8.7 (Ootpa)

      Red Hat Enterprise Linux release 8.7 (Ootpa)

      - -

      sudo ./setup.exe.install  -is:javahome /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.362.b09-2.el8_7.x86_64/jre/bin/java -is:log ~/rsm.log

      - - 

      rsm.log:

      Log file created by MultiPlatform installer @Di Mär 28 15:36:29 CEST 2023

      INSTALLER_PATH=/mnt/ANSYS/lnx/en/v23.R1/Electronics/Linux/RSM/disk1/./setup.exe.install

      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/istemp190257087153629 for /tmp/istemp190257087153629/jre-1_5_0_21-linux64.bin

      50865 512 bytes disk blocks required.

      1151531776 512 bytes disk blocks  available on the partition /tmp/istemp190257087153629

      Disk space check on the parition /tmp/istemp190257087153629 succeeded.

      checking disk space on the parition /tmp/istemp190257087153629 for /tmp/istemp190257087153629/jre-1_5_0_21-linux64.bin

      138617 512 bytes disk blocks required.

      1151481400 512 bytes disk blocks  available on the partition /tmp/istemp190257087153629

       

       

      Disk space check on the parition /tmp/istemp190257087153629 succeeded.

      installing bundled JRE...

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

      Verification failed for /tmp/istemp190257087153629/_bundledJRE_ using the JVM file /tmp/istemp190257087153629/_bundledJRE_/jvm

    • wastl
      Subscriber

      looks like you have to install 

      libnsl
Viewing 9 reply threads
  • The topic ‘installation can’t find java on CentOs 7’ is closed to new replies.