posted 15 years ago
This bit about "non-static . . . cannot be . . . from a static context" is a very common mistake.
You have a static method, which belongs to the class; there is only one copy of that method anywhere in memory.
You have an instance member, which belongs to the object, so there might be several copies of it, with different values in. Which of those are you calling? So the compiler won't allow access. The keywords super and this refer to objects, so they are regarded rather as instance variables, so the compiler won't allow access from a static context either.