• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using a dynamic library with Java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using a dynamic library with Java


  • Subject: Using a dynamic library with Java
  • From: Pascal Robert <email@hidden>
  • Date: Wed, 1 Feb 2006 11:14:19 -0500

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
Stack trace:
File Line# Method Package
ClassLoader.java 1517 loadLibrary java.lang
Runtime.java 788 loadLibrary0 java.lang
System.java 834 loadLibrary java.lang
T2CConnection.java 2926 loadNativeLibrary oracle.jdbc.driver
T2CConnection.java 224 logon oracle.jdbc.driver
PhysicalConnection.java 346 <init> oracle.jdbc.driver
T2CConnection.java 138 <init> oracle.jdbc.driver
T2CDriverExtension.java 78 getConnection oracle.jdbc.driver
OracleDriver.java 549 connect
...


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 ?

_______________________________________________
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


  • Follow-Ups:
    • Re: Using a dynamic library with Java
      • From: email@hidden
  • Prev by Date: Re: Common library, how to
  • Next by Date: Re: Common library, how to
  • Previous by thread: Re: Common library, how to
  • Next by thread: Re: Using a dynamic library with Java
  • Index(es):
    • Date
    • Thread