db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@debrunners.com>
Subject Re: Sharing code
Date Fri, 02 Sep 2005 21:36:33 GMT
David W. Van Couvering wrote:

>  If
> the service manager says "I don't have that" then we can throw an
> exception saying something like "Unable to load version 10.2 of the
> Message Service.  It is probable that your classpath has older versions
> of Derby jar files listed first; please check your classpath and make
> sure that all Derby jar files are listed ahead of older versions."

Also Rick said:

> o The exception would complain that the classpath was mis-wired and explain how to wire
it correctly. 

Just remember that classes get loaded into the JVM in more ways than the
class path variable, thus there may not be an easy way to describe how
to wire it correctly.

And what happens if there is no way for the user to reverse the order
the jars are searched? This is why a defensive approach is better, if I
don't have the functionality available then I continue to work but with
reduced functionality.


View raw message