Thread: Never before seen error help!

Results 1 to 5 of 5
  1. #1 Never before seen error help! 
    Banned

    Join Date
    Oct 2009
    Posts
    215
    Thanks given
    0
    Thanks received
    4
    Rep Power
    0
    Code:
    client.java:12: client is not abstract and does not override abstract method upd
    ate() in Player
    public class client extends Player implements Runnable {
           ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error
    Finished!
    Press any key to continue . . .
    Any help?
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    um there should be somthing in player.java

    apaprently this method

    public abstract void update();

    is giving u errors?
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Oct 2009
    Posts
    215
    Thanks given
    0
    Thanks received
    4
    Rep Power
    0
    What?
    It already has public abstract void update(); in my player.java.
    You mean it's missing in client.java?
    Reply With Quote  
     

  4. #4  
    Member

    Join Date
    Dec 2007
    Posts
    1,094
    Thanks given
    8
    Thanks received
    8
    Rep Power
    0
    method update has to be called in your class.

    If your having trouble just make a new method
    Code:
    public void update() {
    
    }
    and stick that in client.java
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    is this line in player.java
    public abstract void update();
    have any capitals?
    like Void or Abstract or Public
    i jsut tested and i get same error when capitalizing the Void part.

    if not then its what dennis just posted but itll be

    Code:
    	public void update() {
    		handler.updatePlayer(this, outStream);
    		handler.updateNPC(this, outStream);
    		flushOutStream();
    	}
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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