help with strange error Can't load IA 32-bit .so on a IA 32-bit platform

Hi guys

I'm stuck on this problem for so long, it would be great if some one can help me out. I use jni to build a interface to access an native library and I have successfully get in running on my development environment, but when at deployment to another box, I get the following message.

/data/tomcat/app/libXXX.so Can't load IA 32-bit .so on a IA 32-bit platform

I have checked the configuration of LD_LIBRARY_PATH to point to the dir of the libXXX.so file.Is this error caused by dynamic link library missing something when it is moved to the deployment environment ? or is it because I'm not building it properly ? or the os version version ?Thanks a lot guys.

the libXXX.so is build using the following line:

gcc -g -fno-exceptions -fPIC -DPIC -shared -I$JAVA_HOME/include/ -I$JAVA_HOME/include/linux -I./include -I./lib/gcc/ -lapi_v2_Core -lgrammarsCNT -lCryptoLib -lcontainer -ledi -ledicont -ledixml -ltcpsocket -lzlib -lexpat XXX.c -o ../../../target/classes/libXXX.so

Development Environment:

Deployment Environment

Tomcat Version = Apache Tomcat/5.5.14

JVM Version = 1.5.0_11-b03

OS Name=Linux

OS Version =2.6.9-11.ELsmp

OS Architecture = i386

Deployment Environment

Tomcat Version = Apache Tomcat/5.5.20

JVM Version = 1.5.0_11-b03

OS Name=Linux

OS Version =2.4.21-15.0.3.ELsmp

OS Architecture = i386

[1458 byte] By [JerryTramadaa] at [2007-11-26 18:48:28]
# 1
question closed, the Java 1.5.0 update 10 returns this message which the true error message can only be seen with update 7 ( don't know about other versions)
JerryTramadaa at 2007-7-9 6:22:29 > top of Java-index,Java HotSpot Virtual Machine,Specifications...