Hello,

   I've just got this working ... I decided to post here this solution
just in case anyone needs ...

try {
URL urlList[] = {
        new File("/home/ffs/workspace/TesteAspects").toURL(),
        new File("/home/ffs/workspace/TesteAspects/aspects.jar")
                .toURL() };

ClassLoader loader = new URLClassLoader(urlList);
                
Test2 t = new Test2();
Class cls1 = Class.forName("Test1", true, loader );
String s[] = new String[] {};
Object arguments[] = new Object[] { s };
Method mainMethod = cls1.getMethod("main", new Class[] { s
        .getClass() });
Object result = mainMethod.invoke(null, arguments);

System.out.println(cls1.getClassLoader());
System.out.println(t.getClass().getClassLoader());
} catch...


Regards,
Fabio
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to