Mark Frasertoo wrote:Thanks Tony, but the NoSuchFieldException is before that line.
The fact you are calling setAccessible(true) implies to me that the field you're attempting to access is not public.
The getField() method only returns
public fields. If you want to get any non-public fields you need to use
getDeclaredField(...)