This is in regard with the ocijdbc12.dll file I need to download for my project, as I am repeatedly getting the error as java.lang.UnsatisfiedLinkError: C:\Windows\System32\ocijdbc12.dll: %1 is not a valid Win32 application. Previously I tried with ocijdbc11.dll with 64bit for windows 7 which is also a 64 bit OS version, but it was asking for ocijdbc12.dll file, but now after adding this file its giving the error.
Please do let me know where can we get the ocijdbc12.dll file which is of 32 bit.
Reply: In fact, you do not need 32-bit ocijdbc12.dll file, because your JAVA compiler system is 64-bit, so if you use 32-bit it will result in that JAVA system cannot work properly. I think your JAVA working environment is a problem, and you should carefully check the configuration file.
On Windows platforms:
- Add \jdbc\lib\ojdbc5.jar to
Your CLASSPATH if you use JDK 1.5 or
\jdbc\lib\ojdbc6.jar if you use JDK 1.6.
- Add \jlib\orai18n.jar to your CLASSPATH if needed.
- Add \bin to your PATH if you are using the JDBC OCI
Driver.
On Solaris/Digital Unix:
- Add /jdbc/lib/ojdbc5.jar to your CLASSPATH if you
Use JDK 1.5 or /jdbc/lib/ojdbc6.jar if you use JDK 1.6
- Add /jlib/orai18n.jar to your CLASSPATH if needed.
- Add /jdbc/lib to your LD_LIBRARY_PATH if you use
The JDBC OCI driver.
Ensure that the jdbc OCI DRIVER used by the program is consistent with the oracle client, and that NLS_LANG is consistent with the database and client character set configurations.
After the above configuration, if the program about java.lang.UnsatisfiedLinkError: ocijdbc11...still appears, check whether the JDK version number (32-bit or 64-bit) used by the program is the same as the oracle client version.