Subject | Re: [Firebird-Java] JDK1.4.2.17 No suitable driver error. |
---|---|
Author | Adriano dos Santos Fernandes |
Post date | 2009-08-24T16:13:47Z |
iananewby escreveu:
That should be done automatically when FBDriver class is loader.
--
Adriano dos Santos Fernandes
http://asfernandes.blogspot.com
http://www.firebirdsql.org
> Hi Folks,Why are you registering the driver?
> I've written the following small test class to test issues with character sets:
>
> package dbcharsettest;
>
> import java.sql.Connection;
> import java.sql.Driver;
> import java.sql.DriverManager;
> import java.util.Properties;
> import org.firebirdsql.jdbc.FBConnection;
>
> public class Main {
>
> public Main() {
> }
>
> public static void main(String[] args) {
>
> try {
> Driver driver = (Driver)Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();
> DriverManager.registerDriver(driver);
That should be done automatically when FBDriver class is loader.
--
Adriano dos Santos Fernandes
http://asfernandes.blogspot.com
http://www.firebirdsql.org