I recently moved on Windows 7 (64 bit) and have been trying to build my project thru Maven. I keep getting the below error when I try to build a project which talks to DB. I have 32 bit Oracle 11g on my system. Please let me know how I can resolve this.
Caused by: java.lang.UnsatisfiedLinkError: C:\oracle\product\11.2.0\client_1\bin
\ocijdbc11.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3171)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java
:3167)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:233)
Yes its run time. Yeah I am trying to get it installed on my machine but apparently Quest TOAD doesn't work on 64 bit. So I need both 32 and 64 bit on my machine and while installing 64 it merges them both. IT help desk is helping me in it.
One more que - Using JDK 32 or 64 bit will not make any difference .. right? I can use either?
For anyone, using Oracle SQL and facing this issue;
Go to Connection> select the existing one, Change Connection_Type to Basic and fill out appropriate information.
You need to add the Service Name too;
Test it and you might see Success.