Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Non static method cannot be referenced from a non static context

807598Sep 25 2006 — edited Sep 26 2006
Dear all
I am getting the above error message in my program.
public void testing(Vector XY){
RecStore.checkUnits(XY);
}
method checkUnits is non static and cannont be called from a non static context. I don't see the word static anywhere...
I have done a wider search throughout the main class and I'm haven't got any static their either.

Any ideas?

Thanks

Dan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 24 2006
Added on Sep 25 2006
9 comments
281 views