# I can't load library, help me !

Vu Ha Tuan Anh (vhtanh@yahoo.com)
Wed, 18 Mar 1998 23:31:06 -0800 (PST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Shah: "security in the internet"
- Previous message: Marianne Mueller: "Re: Java 1.2 ver sun event keyboard"
- Next in thread: Marianne Mueller: "Re: I can't load library, help me !"

    Date: Wed, 18 Mar 1998 23:31:06 -0800 (PST)

    From: Vu Ha Tuan Anh <vhtanh@yahoo.com>

    Subject: I can't load library, help me !

    To: java-security@web4.javasoft.com

I compile a demo programme but I can't. Can you help me ?
______________________________________________________
Following error :

$javac SimpleSelect.java
$java SimpleSelect
DriverManager.getConnection("jdbc:odbc:testdb")
trying
driver[className=sun.jdbc.odbc.JdbcOdbcDriver,context=null,sun.jdbc.odbc.JdbcOdbcDriver@1dce076e]
*Driver.connect (jdbc:odbc:testdb)
JDBC to ODBC Bridge: Checking security
No SecurityManager present, assuming trusted application/applet
JDBC to ODBC Bridge 1.1001
Current Date/Time: Thu Mar 19 18:10:39 GMT+00:00 1998
Loading JdbcOdbc library
ld.so.1:
/export/home/tuananh/jdk1.1.5/bin/../bin/sparc/green_threads/java:
fatal: libodbcinst.so.1: can't open file: errno=2 (libJdbcOdbc.so)
Unable to load JdbcOdbc library
java.sql.SQLException: Unable to load JdbcOdbc library
at sun.jdbc.odbc.JdbcOdbc.<init>(JdbcOdbc.java:91)
at
sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:321)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:159)
at java.sql.DriverManager.getConnection(DriverManager.java:91)
at java.sql.DriverManager.getConnection(DriverManager.java:134)
at SimpleSelect.main(SimpleSelect.java:50)
Unable to load JdbcOdbc library
Unable to allocate environment
getConnection: no suitable driver
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:111)
at java.sql.DriverManager.getConnection(DriverManager.java:134)
at SimpleSelect.main(SimpleSelect.java:50)
SQLException: SQLState(08001)

*** SQLException caught ***

SQLState: 08001
Message: No suitable driver
Vendor: 0

Thanks,

==
Vu Ha Tuan Anh
vhtanh@yahoo.com

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

- Next message: Shah: "security in the internet"
- Previous message: Marianne Mueller: "Re: Java 1.2 ver sun event keyboard"
- Next in thread: Marianne Mueller: "Re: I can't load library, help me !"