Re: Using a dynamic library with Java
Re: Using a dynamic library with Java
- Subject: Re: Using a dynamic library with Java
- From: Pascal Robert <email@hidden>
- Date: Wed, 1 Feb 2006 15:04:20 -0500
Le 06-02-01, à 14:29, email@hidden a écrit :
> I'm trying to use the Oracle Mail (Collaboration Suite) from a
> WebObjects application, and instead of using the JDBC "thin" (Type
IV)
> driver, it use their Type 3 (JDBC + OCI), so a native OCI dynamic
> library is required, I took the one from their InstantClient for OS
X.
> I adjusted the java.library.path in my XCode project to the correct
> path, I even copied the libs in /Library/Java/Extensions, I always
get
> this error :
>
> Error: com.webobjects.foundation.NSForwardException
> [java.lang.UnsatisfiedLinkError] null
> Reason: no ocijdbc10 in java.library.path
> ...
>
> I do have 'libocijdbc10.dylib' in the path, so I really don't know
why
> it's doesn't to load. Does using dynamic C/C++ library works with
Java
> on OS X ?
I'm assuming that you have printed out the value of java.library.path
and it includes the path to the OCI driver.
Yes, which gave me /Library/Java/Extensions, /usr/lib/java and the
application's bundle (.woa/)
Have not done it on OS X, and never used Oracle Mail, but having
installed OCI and native DB2 drivers for WebObjects use, often the
native libraries have dependencies themselves, and if those cannot be
resolved you will get the UnsatisfiedLinkError, so you often have to
get the libraries in their normal installed state onto your
java.library.path, not just move the native libs onto the java path.
Ah, I will look at that. I installed all the libs that came from the
Instant Client base and Instant Client international, I will try with
the libs that comes with the full Oracle Client instead.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden