Michel,
I observe that the defineClass method you arte using is 'protected'
Is this your problem ?
Rob
Michel Prevost wrote:
> Hi All
>
> I am currently doing some tests with dynamic class loading. I have the
> following snippet of code:
>
> Class dateDisplayClass =
> cl.defineClass(args[0],
> dateDisplayClassBytes, 0, dateDisplayClassBytes.length);
>
> cl.resolveClass(dateDisplayClass);
>
> Here is the problem: when compiling the file, I get the following errors:
>
> ClassClient.java:20: No method matching defineClass(byte[], int, int) found
> in class java.lang.ClassLoader.
> cl.defineClass(args[0],
> ^
> ClassClient.java:24: No method matching resolveClass(java.lang.Class) found
> in class java.lang.ClassLoader.
> cl.resolveClass(dateDisplayClass);
>
> When I look in the JDK1.2 API Specifications, those 2 methods exist. Any
> idea?
>
> Michel
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]