Results 1 to 3 of 3
Thread: static problem in threads
- 11-15-2011, 11:39 PM #1
Member
- Join Date
- Nov 2011
- Posts
- 7
- Rep Power
- 0
static problem in threads
Hello i am new to using threads.
i have a class which calls a method of another class, but i get the non-static method can not be called from a static context, error.
i have not declared anything static in the thread class.
so my question is, is threads always static, and is it true that everytime i want to call a method from another class in a thread, the method have to be declared static??
- 11-15-2011, 11:43 PM #2
Member
- Join Date
- Nov 2011
- Posts
- 7
- Rep Power
- 0
Re: static problem in threads
ups wrong forum
- 11-16-2011, 02:59 AM #3
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
Similar Threads
-
Using threads will solve my problem?
By George R. in forum Threads and SynchronizationReplies: 8Last Post: 03-24-2011, 07:13 PM -
Yet another "non-static method cannot be referenced fro a static context" problem
By jazzermonty in forum New To JavaReplies: 4Last Post: 03-14-2011, 12:05 AM -
Problem running many Threads !!
By AlQassabi in forum Threads and SynchronizationReplies: 10Last Post: 03-04-2011, 10:29 AM -
Static problem
By rizowski in forum New To JavaReplies: 7Last Post: 01-26-2011, 03:43 PM -
problem with threads
By amith in forum Threads and SynchronizationReplies: 4Last Post: 07-10-2008, 07:46 AM


LinkBack URL
About LinkBacks

Bookmarks