Thanks for the reply.
when we use Class.forName most of the time we will use it like the
second post. So I guess I have to read some more about
"Class.FromType".
Anyway, I've managed to get it to work using statments like:
Class tempClass = Class.forName("http://localhost/test/MFDharness.dll",param,true);
I still can't get the JBC to locate the .dll using the app.config file
(probing or appdomain)
Thanks,
Udi Zisser
NetManage Inc.
------
[quoted text, click to view] Bart Jacobs <bart.jacobs@student.kuleuven.ac.be> wrote in message news:<3ff43ac8$0$6625$ba620e4c@news.skynet.be>...
> Udi,
>
> In my previous posting, I forgot to mention a very important point: I
> compiled all three classes into the same assembly. That is, I used the
> following compiler command:
>
> vjc /target:library /out:TestApplet.dll *.java
>
> The demo works only if TestPlugIn and TestApplet are in the same
> assembly. This is because the J# version of Class.forName(String) looks
> only in the assembly that contains the call of Class.forName.
>
> If you want to load the plug-in from a different assembly, say
> TestPlugIn.dll, then use the following code:
>
> Class plugInClass =
> Class.FromType(System.Type.GetType("test.TestPlugIn, TestPlugIn"));
>
> and compile the demo as follows:
>
> vjc /t:library /out:TestApplet.dll PlugIn.java TestApplet.java
> vjc /t:library /out:TestPlugIn.dll /r:TestApplet.dll TestPlugIn.java
>
> Greetings
>