Re: Loading JDBC Driver
От | Peter Mount |
---|---|
Тема | Re: Loading JDBC Driver |
Дата | |
Msg-id | Pine.LNX.4.21.0010091339060.772-100000@maidast.demon.co.uk обсуждение исходный текст |
Ответ на | Loading JDBC Driver ("José" "Hernández" Zavala <joseghz@yahoo.com>) |
Список | pgsql-sql |
On Thu, 5 Oct 2000, Jos Hernndez Zavala wrote: > Hello. > > I am trying to load a jdbc driver for postgres, only I > want to make it from an Applet. For an application I > used the form: > > Class.forName ("postgresql.Driver"); > > Which the correct form would be to be able to make it? For 6.x drivers you are correct. For 7.x and later it's Class.forName("org.postgresql.Driver"); PS: For applications, you have two other methods available. One supplying the driver in the command line, ie: java -Djdbc.driver=org.postgresql.Driver my.application The other is using Manifest in your application's jar file, which works well under Windows. Peter -- Peter T Mount peter@retep.org.uk http://www.retep.org.uk PostgreSQL JDBC Driver http://www.retep.org.uk/postgres/ Java PDF Generator http://www.retep.org.uk/pdf/
В списке pgsql-sql по дате отправления: