Link to home
Start Free TrialLog in
Avatar of kumarSaravanan
kumarSaravananFlag for United States of America

asked on

java.lang.UnsatisfiedLinkError: oracle.jdbc.driver.T2CConnection.t2cCreateState(

java.lang.UnsatisfiedLinkError: oracle.jdbc.driver.T2CConnection.t2cCreateState

I am running into this error when I downloaded all the packages from the repository in one laptop.
The surprising thing, I have another workspace with same code working fine.
I am trying to replicate the behaviour in either application. I could not.
Any help is appreciated much.

I am using ocijdbc6.jar.
JRE is 1.6.
Oracle is 10g
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Looks like an issue with your classpath or something similar. Can you compare (workspace) path settings? Your .jar file has to be in the classpath with the .jar name like this: <path>\ocijdbc6.jar
Avatar of kumarSaravanan

ASKER

I have verified the classpath. But the problem still persists.
Adding the jar file to the classpath is not helping.
If I don't have the file ocijdbc11.dll on the path I get an error saying that file is missing.
I don't know why I need ocijdbc11.dll.
Once I add, I get the above error.
What else I could be missing?
Only think I can think of that the laptop has an Oracle 11 client as well and that the PATH setting has the Oracle 11 client path in front of the Oracle 10 client. That way it 'finds' the Oracle 11 client first and thus wants the ocijdbc11.dll library. If so, verify your path or remove the Oracle 11 client, keeping Oracle 10 client (and check path again). Good luck!
It turned out to be wrong jar file. For some reason jdbc6.jar is not compatible with oracle client 11.2 in Eclipse RCP application. When I removed jdbc6.jar and added jdbc5.jar as a plugin, I could connect to the DB.
kumarSaravanan, thank you for the points but the comments you've selected are not the solution to your question, which is your own last remark. You may ask voor attention from a moderator and close this question differently, choosing your own last comment as solution, awarding 0 points. Good to hear you've solved the issue!
ASKER CERTIFIED SOLUTION
Avatar of kumarSaravanan
kumarSaravanan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial