CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   FoamX libXpso6 wrong ELF class error (http://www.cfd-online.com/Forums/openfoam-pre-processing/62067-foamx-libxpso6-wrong-elf-class-error.html)

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 inet:turing.eas.asu.edu:1234 ...
Starting FoamX Host Browser with inet:turing.eas.asu.edu:1234 ...
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : FoamXHostBrowser
Date : May 18 2008
Time : 10:28:40
Host : turing.eas.asu.edu
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/libawt.so: libXp.so.6: 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(ClassLoader.java :1503)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at sun.security.action.LoadLibraryAction.run(LoadLibr aryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoa der.java:38)
at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
at java.awt.Component.<clinit>(Component.java:506)
/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

Ayan.

mbeaudoin May 18, 2008 15:12

Hi, /home/ayan/OpenFOAM/lin
 
Hi,

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

This library requires a 32-bit version of libXp.so.6

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

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

The 32-bit version of libXp.so.6 is installed under /usr/lib

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

Martin

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/libawt.so
readelf -h /findThePathOnYourSystem/libXp.so.6

For libawt.so, you should get "Class: ELF32"
For libXp.so.6, you will probably get "Class: ELF64"

Martin


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