Two class loaders CL1 and CL2 load two different classes C1 and C2. I would like to invoke a method in C2 from C1. Is this possible via reflection?
I got a tip saying using a helper class loaded by boot strap class loader can solve this as both classes have access to the boot strap class loader. But do not know how?
Could somebody guide me?
C2 obj? In both cases, the problem is C2 is absent in the text of C1 and C1 could not compile. If it compiles somehow, then you have another C2 loaded with CL1. Anyway, show us the text and tell what and where an error occur.