Results 1 to 3 of 3
  1. #1
    nvidia is offline Member
    Join Date
    Aug 2007
    Posts
    13
    Rep Power
    0

    Default [SOLVED] HELP! Thread Problem

    Hi i have defined a class called SimpleThread.java which illustrates the use of a thread outputting a simple message. I have another file for the main class which is supposed to use this new class but everytime i create the first object i get an error message saying
    incompatitble types, required: Java.lang.Thread
    I have attached to package to show you what i have done so far. Please give me some suggestions as to how to solve this.

    Another question is what does it mean by when it says Java.lang.Thread? Does it simply mean it requires a thread object to be difined?

    Thanks
    Attached Files Attached Files

  2. #2
    nvidia is offline Member
    Join Date
    Aug 2007
    Posts
    13
    Rep Power
    0

    Default

    This is now resolved.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Animation Delay - Thread problem
    By wererabit in forum Advanced Java
    Replies: 3
    Last Post: 04-10-2009, 10:35 PM
  2. data from the main/GUI thread to another runnin thread...
    By cornercuttin in forum Threads and Synchronization
    Replies: 2
    Last Post: 04-23-2008, 10:30 PM
  3. Problem using thread +rmi in my homework
    By IbrahimAbbas in forum Threads and Synchronization
    Replies: 10
    Last Post: 04-14-2008, 09:24 PM
  4. Replies: 0
    Last Post: 01-28-2008, 07:02 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
  •