ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@mad.scientist.com
Subject RE: AntClassLoader and JDBC drivers
Date Wed, 16 Aug 2000 00:59:15 GMT
On Wed, 16 Aug 2000, Conor MacNeill wrote:

> The driver you are actually loading is a class which implements the Driver
> interface, so there should be no problem in loading it and creating an
> instance. This is true of the Oracle driver we use here. Creating an
> instance should run the static initializer and cause the class to register
> itself with the DriverManager (loaded in the system class loader).
> 
> Can you try that?

Another approach that is useful is to get reference to class
and try to look up a non-existent method. This forces
resolution (usually).

Cheers,

Pete

*--------------------------------------------------*
| Latrobe University,     |                        |
| Bundoora, Australia     | Does the name 'Pavlov' |
| Office: PW220           |    ring a bell ?       |
| Ex: 2503                |                        |
*--------------------------------------------------*


Mime
View raw message