-
-
January 15, 2019 at 6:10 pmgrybkaSubscriber
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
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.
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?
-
January 15, 2019 at 11:52 pmgrybkaSubscriber
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 -
January 16, 2019 at 12:37 amgrybkaSubscriber
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.
-
January 16, 2019 at 1:17 amtsiriaksAnsys 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
-
March 31, 2020 at 5:00 pmchenniuSubscriber
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
-
April 1, 2020 at 12:58 amtsiriaksAnsys Employee
what is the output of
cat /etc/*release
and
env
-
April 1, 2020 at 3:27 amchenniuSubscriber
Thanks for the respond. It was CentOS8, I reinstalled on CentOS7 and it seems to work.
-
April 6, 2020 at 9:24 pmtsiriaksAnsys Employee
sounds good. Thanks for the update. Yes, CentOS/RH 8 is still not supported even by current ANSYS version (2020 R1)
-
August 2, 2021 at 9:56 amwastlSubscriberI 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
-
- The topic ‘installation can’t find java on CentOs 7’ is closed to new replies.
- Speed up simulation in HFSS
- RSS is disabled.
- ANSYS Mechanical won’t open and stays on Blank Gray Screen (Path environment va)
- ANSYS DISPLAY RESOLUTION PROBLEM
- ansys fluent error when opening it “unexpected license problem”
- Workbench license error
- Ansys 2024 R1 – The installation completed with warnings/errors.
- Could not connect to a valid licensing server
- LS-Dyna Beam elements outputs
- Unexpected error on Workbench: Root element not found.
-
791
-
427
-
265
-
201
-
180
© 2024 Copyright ANSYS, Inc. All rights reserved.