On Fri, 31 Oct 2003, Mark Taylor 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?
Yes, unfortunately this is essential to use webstart.
|