Results 1 to 3 of 3
  1. #1
    Mira1000 is offline Member
    Join Date
    Nov 2011
    Posts
    7
    Rep Power
    0

    Default 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??

  2. #2
    Mira1000 is offline Member
    Join Date
    Nov 2011
    Posts
    7
    Rep Power
    0

    Default Re: static problem in threads

    ups wrong forum

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

Similar Threads

  1. Using threads will solve my problem?
    By George R. in forum Threads and Synchronization
    Replies: 8
    Last Post: 03-24-2011, 08:13 PM
  2. Replies: 4
    Last Post: 03-14-2011, 01:05 AM
  3. Problem running many Threads !!
    By AlQassabi in forum Threads and Synchronization
    Replies: 10
    Last Post: 03-04-2011, 11:29 AM
  4. Static problem
    By rizowski in forum New To Java
    Replies: 7
    Last Post: 01-26-2011, 04:43 PM
  5. problem with threads
    By amith in forum Threads and Synchronization
    Replies: 4
    Last Post: 07-10-2008, 08:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •