# Re: I can't load library, help me !

Marianne Mueller (Marianne.Mueller@Eng)
Thu, 19 Mar 1998 11:03:53 -0800 (PST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: George Chung: "a possible SecureRandom seeding implementation?"
- Previous message: Amos Kudirka: "Java security and NE4.0"
- Maybe in reply to: Vu Ha Tuan Anh: "I can't load library, help me !"

    Date: Thu, 19 Mar 1998 11:03:53 -0800 (PST)

    From: Marianne Mueller <Marianne.Mueller@Eng>

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

    To: java-security@web4.javasoft.com, vhtanh@yahoo.com

Sorry, this is a mailing list for security questions. It looks
like you might need to make sure the JDBC or ODBC libraries are
on your CLASSPATH.

For info on getting started with Java, see
http://java.sun.com/support/moresupport.html

The file
http://java.sun.com/products/jdk/1.1/README
describes how you can use CLASSPATH.

--Marianne

> 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
> MIME-Version: 1.0
>
> 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.JdbcO
dbcDriver@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: George Chung: "a possible SecureRandom seeding implementation?"
- Previous message: Amos Kudirka: "Java security and NE4.0"
- Maybe in reply to: Vu Ha Tuan Anh: "I can't load library, help me !"