mercredi 3 novembre 2021

Get SWT classes via reflection running from a java agent

I have developed a Java agent which uses the JNI Attach API to attach to Eclipse. I want to use reflection so I can get the UI Thread and dispatch some calls. The problem is I can't get the org.eclipse.swt.Display class through reflection. I get the ClassNotFoundException. Any ideas why this happens and how I can successfully use reflection in this case?





Aucun commentaire:

Enregistrer un commentaire