Aug 3, 2016

SOLVED: Java 32bit error on 64bit CentOS :: ld-linux.so.2 libmawt.so libXtst.so.6

Attempts to run 32bit Java on a 64bit system, the following errors would display:

/XXXXXXX/runtime/LNX86/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Exception in thread "main" java.lang.UnsatisfiedLinkError: /XXXXXXXX/runtime/LNX86/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory

To fix, install the following (tested on CentOS7):

sudo yum install glibc.i686
sudo yum install libXext.i686
sudo yum install  libXrender.i686
sudo yum install  libXtst.i686

Now you should be able to run the Java application.