L
laredotornado
Hi,
I"m using Mac 10.5.6 (Intel 32 bit) and trying to connect to an Oracle
10g server via JDBC (Java 1.5). 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/
lib/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/lib/
classes12.jar. How can I troubleshoot this further?
Thanks, - Dave
I"m using Mac 10.5.6 (Intel 32 bit) and trying to connect to an Oracle
10g server via JDBC (Java 1.5). 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/
lib/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/lib/
classes12.jar. How can I troubleshoot this further?
Thanks, - Dave