I\'m having a little trouble getting my application to work.
I get the error: error: non-static variable object1 cannot be referenced from a static context
error: error: non-static variable object1 cannot be referenced from a static context
public object object1 make this as public static object object1;
public object object1
public static object object1;
You can not refer non-static class variables inside static method.