Force 64-Bit JDK/JRE to pick the 64-Bit library on Linux

158 views Asked by At

Here is my container environment and configuration Environment configuration depicting 64-Bit architecture of JVM and Linux and 64-Bit libraries being available As you can see the JVM and the Linux are both 64-Bit. The library location also has 64Bit liars3wapi64.so file available and that is what I have set as LD_LIBRARY_PATH using the following 2 commands in dockerfile.
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ibm/ondemand/V10.5/www:/opt/ibm/ondemand/V10.5/lib64
ENV CLASSPATH=/opt/ibm/ondemand/V10.5/www/api/ODApi.jar:${CLASSPATH}
However, during initialization I am getting the below error where it is reading the 32-Bit library.
Caused by: java.lang.UnsatisfiedLinkError: /opt/ibm/ondemand/V10.5/www/libars3wapi32.so: /opt/ibm/ondemand/V10.5/www/libars3wapi32.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
I am not sure how to force the JVM to look for 64-Bit library. I have spent too many hours and haven't seen any difference in the outcome. Would appreciate any hint. Thanks.

0

There are 0 answers