CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

FoamX libXpso6 wrong ELF class error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2008, 14:30
Default Hi all, I got this error me
  #1
New Member
 
Ayan Banerjee
Join Date: Mar 2009
Posts: 1
Rep Power: 0
abanerj3 is on a distinguished road
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.
abanerj3 is offline   Reply With Quote

Old   May 18, 2008, 16:12
Default Hi, /home/ayan/OpenFOAM/lin
  #2
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
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 is offline   Reply With Quote

Old   May 18, 2008, 16:32
Default Hello again, Using the comm
  #3
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
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
mbeaudoin is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with FoamX skabilan OpenFOAM Installation 0 March 25, 2008 17:20
FoamX Startup Error libXpso6 craig OpenFOAM Pre-Processing 1 November 9, 2007 19:39
error:wrong number of args? miomio CFX 3 July 10, 2007 01:14
Library problem on a 64bit machine wrong ELF class ELFCLASS32 jango OpenFOAM Installation 0 June 11, 2007 08:29
error: CDR: invalid argument [1]: wrong type Marc FLUENT 0 July 24, 2006 06:59


All times are GMT -4. The time now is 18:14.