You say you are trying to run a program on a Linux system, but the output of uname -a says that it's SunOS, which is not Linux.
Your Java program is trying to load a native library /home/ukhew1/dbxml-2.4.16/install/lib/libdb_java-4.6.so, but it looks like that native library is not suitable for the operating system you're trying to run it on. It's probably a 64-bit library (guessing from the ELFCLASS64), and your operating system is most likely not 64-bit.
Make sure that you get a native library that's appropriate for the operating system you're using.
It also looks like your system has a Sun SPARC processor. You'll need a native library for that processor, and not one for Intel x86 processors, for example.
Totally forgot that I change from a Solaris to a Linux.. thus the error.
Back to the error of wrong ELF class. I am trying to build the library for DBXML and that was the error. I understand that my OS is a 32 bit which I am unable to do anything about (because its a server Im running on). However I cant find the method to build this native library on 32 bits.
I tried using ./buildall.sh -b 32 as the argument ( as stated in the buildall.sh file) but the build is still in 64 bits:
From the Oracle forum, I gathered that we have to set the CFLAGS/CXXFLAGS/LDFLAGS in order to build a 32bit version by gcc...a method which he doesnt know too... Any idea how do we do that?
By the way, if you can run a 64-bit JVM on your system, then your OS must also be 64-bit and not 32-bit as you said - you can't run 64-bit software on a 32-bit OS (the other way around does work, however, on Intel x86 systems).