On Thu, 30 Oct 2003, Peter W. Draper wrote:
> webstart uses a slightly different class loader strategy to normal
> applications, so you cannot use "Class.forName(String)", you have to use
> "this.getClass.forName(String)", or in the static context (HDX does this),
> to get the correct ClassLoader for "Class.forName(String,boolean,ClassLoader)"
> you need to use "Thread.currentThread().getContextClassLoader()".
Given this, do you think we should eschew Class.forName() in favour
of these alternatives in all our code?
--
Mark Taylor Starlink Programmer Physics, Bristol University, UK
[log in to unmask] 0117 928 8776 http://www.star.bris.ac.uk/~mbt/
|