Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JRE 1.5.0.12 could not load ocijdbc10.dll: Can't load AMD 64-bit .dll on a

843829Jun 4 2008 — edited Jun 4 2008
Hi
I am mirating a application to 64 bit end from 32 bit.

I am using 64 bit intel with windows server 2003 64 bit. I have installed oracle x64 version on it.
My application uses
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode)

I think its 32 bit jre.

At some point when the jvm tries to load the file C:\oracle\product\10.2.0\db_1\BIN\ocijdbc10.dll where it fails giving the following error.

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\oracle\product\10.2.0\db_1\BIN\ocijdbc10.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3135)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3131)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:221)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:132)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171

I think the problem is jre native library is 32 bit and it's trrying to load 64 bit dll.
Do we have a Inter 64 bit JDK or JRE 1.5.0.12? I trind to search but we have only

Windows x64 executable (use 32-bit version for applet and Java Web Start support)
jdk-1_5_0_15-windows-amd64.exe,

which from the name seems like amd 64 bit.

Thanks
AD
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2008
Added on Jun 4 2008
3 comments
3,826 views