Article View: borland.public.jbuilder.java.language
Article #19302non-static variable cannot be referenced from a static context
From: Ben Sudbury
Date: Thu, 19 Feb 1998 00:00
Date: Thu, 19 Feb 1998 00:00
15 lines
730 bytes
730 bytes
Hi All,
I'm just building my first "real" Java application and continually get
the error:
"non-static variable cannot be referenced from a static context"
when compiling my code.
Can someone explain what this means and how to avoid it?
Thanks,
Ben.
Technical Details
Message-ID:
<6cgge4$29424@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,511302bcb3fe29ca,start X-Google-Attributes: gidf74b3,public From: "Ben Sudbury" <ben@netcast.com.au> Subject: non-static variable cannot be referenced from a static context Date: 1998/02/19 Message-ID: <6cgge4$29424@forums.borland.com> X-Deja-AN: 326485616 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: None Newsgroups: borland.public.jbuilder.java.language