Exception in thread "main" java.lang.IllegalArgumentException: Attempt to use non-static field with ReferenceType
i trace the code which like below:
if(!var5.isStatic()) {
throw new IllegalArgumentException("Attempt to use non-static field with ReferenceType");
}
and my Class is:
public class App {
private String version;
private int system;}
i know is not static,but i want to get the value of version,but the type of value is com.sun.jdi.ObjectReference,so how could i get the value of version?