CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   FoamX libXpso6 wrong ELF class error (

abanerj3 May 18, 2008 13:30

Hi all, I got this error me
Hi all,

I got this error message when I started FoamX:

Starting NameServer with ...
Starting FoamX Host Browser with ...
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1 |
| \ / A nd | Web: |
| \/ M anipulation | |

Exec : FoamXHostBrowser
Date : May 18 2008
Time : 10:28:40
Host :
PID : 12566
Root :
Case :
Nprocs : 1
HostBrowser running.....
Setting LANG to en_EN
Using jar /home/ayan/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/preProcessing/FoamX/li b/FoamX.jar
Using jar /home/ayan/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/preProcessing/FoamX/li b/jlfgr-1_0.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/ayan/OpenFOAM/linux64/j2sdk1.4.2_05/jre/lib/i386/ wrong ELF class: ELFCLASS64
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1586)
at java.lang.ClassLoader.loadLibrary( :1503)
at java.lang.Runtime.loadLibrary0(
at java.lang.System.loadLibrary(
at Method)
at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoa
at sun.awt.DebugHelper.<clinit>(
at java.awt.Component.<clinit>(
/home/ayan/OpenFOAM/OpenFOAM-1.4.1/bin/runFoamXHB: line 139: 12566 Killed FoamXHostBrowser -ORBNamingAddr $myIOP
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 12562).
/home/ayan/OpenFOAM/OpenFOAM-1.4.1/bin/runFoamXHB: line 66: 12562 Killed nsd -ORBIIOPAddr $myIOP --ior $FOAMX_CONFIG/ns.ref < /dev/null

I have no idea about the cause of this error.

Please help


mbeaudoin May 18, 2008 15:12

Hi, /home/ayan/OpenFOAM/lin

/home/ayan/OpenFOAM/linux64/j2sdk1.4.2_05/jre/lib/i386/ is a 32-bit library.

This library requires a 32-bit version of

The error message basically means that java can only find a 64-bit version of on your system.

On my SuSE installation, the 32-bit version of is provided by the following RPM: xorg-x11-libXp-32bit-7.2-60

The 32-bit version of is installed under /usr/lib

The 64-bit version of is installed under /usr/lib64.


mbeaudoin May 18, 2008 15:32

Hello again, Using the comm
Hello again,

Using the command "readelf" is another way to verify that this is indeed a 32-bit vs 64-bit problem.

Compare the outputs returned by the following commands on your system:

readelf -h /home/ayan/OpenFOAM/linux64/j2sdk1.4.2_05/jre/lib/i386/
readelf -h /findThePathOnYourSystem/

For, you should get "Class: ELF32"
For, you will probably get "Class: ELF64"


All times are GMT -4. The time now is 07:36.