My Oracle Support Banner wrong ELF class: ELFCLASS64 ELFCLASS32 (Doc ID 301956.1)

Last updated on DECEMBER 01, 2017

Applies to:

JDBC - Version and later
Information in this document applies to any platform.
***Checked for relevance on 22-Jan-2014***


This note explains the reason for the following error messages:

java.lang.UnsatisfiedLinkError: wrong ELF class: ELFCLASS32
java.lang.UnsatisfiedLinkError: wrong ELF class: ELFCLASS64


/usr/java/jre1.6.0_17/bin/java -cp $ORACLE_HOME/jdbc/lib/ojdbc6.jar:. Class1
Exception in thread "main" java.lang.UnsatisfiedLinkError: /u01/app/oracle/product/11.2.0/dbhome_3/lib/ /u01/app/oracle/product/11.2.0/dbhome_3/lib/ wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at oracle.jdbc.driver.T2CConnection$
at Method)
at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(
at oracle.jdbc.driver.T2CConnection.logon(
at oracle.jdbc.driver.PhysicalConnection.<init>(
at oracle.jdbc.driver.T2CConnection.<init>(
at oracle.jdbc.driver.T2CDriverExtension.getConnection(
at oracle.jdbc.driver.OracleDriver.connect(
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(
at oracle.jdbc.pool.OracleDataSource.getConnection(
at oracle.jdbc.pool.OracleDataSource.getConnection(
at Class1.getConnection(
at Class1.main(


Older clients such as 9i or 10g may get the following errors: wrong ELF class: ... wrong ELF class: ...



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.