PDA

View Full Version : Wrong ELF Class: ELFCLASS64



hap2006
23rd May 2006, 10:15 AM
Hi,

I used FC 3 for more than 1 year with Oracle 10g and DB2 8.2 . Now I got a now computer and I installed FC 5 without any problem. :)
Then I tried ti install DB2 8.2.4, but the setup program (java) did not work! I installed DB2 manually without GUI-setup, and it is runnig now - without the tools (control center etc). Trying to start these tools (32-bit only) will end with the message


"...jre/bin /libawt.so: libXP.so.6: wrong ELF class: ELFCLASS64".

I have the same problem, when I try to install ORACLE 10g2. The installation tool uses 32-bit-java as well.
It seems that there is a undefined mixture of 32-bit and 64-bit modules.

Has anybody an idea, how to avoid this problem? Why did it not happen with FC 3? :confused:

Regards,

hap2006

Thetargos
23rd May 2006, 11:25 AM
Install a 32-bit JRE? You can have both coexisting in your system using /sbin/alternatives.

hap2006
23rd May 2006, 12:59 PM
Install a 32-bit JRE? You can have both coexisting in your system using /sbin/alternatives.

The tools use 32-bit-java! Both, 32-bit and 64-bit, have been installed. It seems to me that modules of the 32-bit-java are calling 64-bit modules.

Thetargos
23rd May 2006, 08:33 PM
The tools use 32-bit-java! Both, 32-bit and 64-bit, have been installed. It seems to me that modules of the 32-bit-java are calling 64-bit modules.
What JRE is the default for the system?



/sbin/alternatives --display java

hap2006
25th May 2006, 10:14 AM
The default is /usr/lib/jvm/jre-1.4.2-gcj/bin/java.

But Oracle installs its own java (for installing the database software) into /tmp/OraInstall.../jre/1.4.2

Thetargos
25th May 2006, 06:20 PM
Yes, but being in /tmp will make be erased upon reboot...

Just get the JRE_blah_blah.bin from Sun, and de-compress it to /usr/local or /opt or wherever you want, then simply make that the default Java and you should be set, fetch the file from: http://www.java.com/en/download/manual.jsp, get the 32-bit version if the program is 32-bit.



su
password:
cp /path/to/jre-1_5_0_06-linux-i585.bin /usr/local
cd /usr/local && sh jre-1_5_0_06-linux-i585.bin
###License###
/usr/sbin/alternatives --install /usr/bin/java java /usr/local/jre1.5.0_06/bin/java 2
/usr/sbin/alternatives --config java <-- Here pick #2
/usr/sbin/alternatives --display java <-- To make sure you are set.

And that's pretty much it.

hap2006
26th May 2006, 10:29 AM
Hi Thetargos,

thank you for your help! But it was not a java problem! It was a problem of the called libXp.so.6. Though the LibXp-package for 32-bit-support has been installed, libXp.so.6 in /usr/lib was linked to /usr/lib64. Therefore the 64-bit-version was called every time. I re-installed the package and got rid of this problem.

Regards,

hap2006

Thetargos
26th May 2006, 09:01 PM
Excellent! Glad you could solve your problem, and it would be nice to have a note for other users who might run into the same problem.