File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes java.lang.UnsatisfiedLinkError: \bin\ocijdbc11.dll: %1 is not a valid Win32 application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java.lang.UnsatisfiedLinkError: \bin\ocijdbc11.dll: %1 is not a valid Win32 application" Watch "java.lang.UnsatisfiedLinkError: \bin\ocijdbc11.dll: %1 is not a valid Win32 application" New topic
Author

java.lang.UnsatisfiedLinkError: \bin\ocijdbc11.dll: %1 is not a valid Win32 application

puneet sri
Greenhorn

Joined: Jan 18, 2012
Posts: 2
Hi All,

I am trying to make a connection to oracle through java program. Following is the configuration.

1.Windows 7, 64 bit.
2.JDK 1.6
3.Oracle client 11g R2, 64 bit.
4.ojdbc6.jar in the class path of my standalone application.
But I am getting following exception- "java.lang.UnsatisfiedLinkError: \bin\ocijdbc11.dll: %1 is not a valid Win32 application"

I googled alot but was not able to figure out the solution.

Please help me solve this problem.

Thanks in advance
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19718
    
  20

My guess is that your JRE is 32-bit. That means it can't use any 64-bit DLL files. Try using a 64-bit JRE instead.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
puneet sri
Greenhorn

Joined: Jan 18, 2012
Posts: 2
I have jdk 1.6.30, 64 bit version
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19718
    
  20

Is that also the one you're using? What's the result of executing java -version?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.UnsatisfiedLinkError: \bin\ocijdbc11.dll: %1 is not a valid Win32 application