0 Replies Latest reply: Oct 16, 2009 4:10 PM by 649509 RSS

    Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/oracle/libo

    649509
      Hi,

      I"m using Mac OS X (32 bit) and trying to connect to an Oracle 10g server via JDBC. I just installed the Mac OS X 10.2 Instant Client Package - Basic Lite from here -- http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/intel_macsoft.html. Sadly, when I try and run my console app to connect, I get this error ...

      Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/oracle/libocijdbc10.jnilib:
           at java.lang.ClassLoader$NativeLibrary.load(Native Method)
           at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
           at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
           at java.lang.Runtime.loadLibrary0(Runtime.java:822)
           at java.lang.System.loadLibrary(System.java:993)
           at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3135)
           at java.security.AccessController.doPrivileged(Native Method)
           at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3131)
           at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:221)
           at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
           at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:132)
           at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
           at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
           at java.sql.DriverManager.getConnection(DriverManager.java:525)
           at java.sql.DriverManager.getConnection(DriverManager.java:140)
           at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
           at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
           at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2097)
           at myco.dor.dmv.driver.youthful.database.YouthfulDriverDatabase.<init>(YouthfulDriverDatabase.java:77)
           at myco.dor.dmv.driver.youthful.database.YouthfulDriverDatabase.getInstance(YouthfulDriverDatabase.java:83)
           at myco.dor.dmv.driver.youthful.AddressFileProcessor.execute(AddressFileProcessor.java:86)
           at myco.dor.dmv.driver.youthful.AddressFileProcessor.main(AddressFileProcessor.java:81)

      Any ideas? My CLASSPATH is set to include /opt/oracle/classes12.jar. My ORACLE_HOME is set to /opt/oracle and LD_LIBRARY_PATH is set to ORACLE_HOME (since that's where all the jars are). How can I troubleshoot this further?

      Thanks, - Dave