HELP!! NoSuchMethodError Desperate

I am getting the error:

java.lang.NoSuchMethodError: GetUsername.<init>(Ljava/net/Socket;LMyObjects;)V

The line causing it is:

new GetUsername(conn.accept(), theobjects).start();

The GetUsername Class is defined as:

public class GetUsername extends Thread {

private Socket theClient = null;

public MyObjects theobjects = null;

public GetUsername(Socket client, MyObjects passedobjects) {

this.theobjects = passedobjects;

this.theClient = client;

}

public void run() {

//Does alot of junk here

//And does more junk here

}

}

the MyObjects class is just a collection of objects thrown into a

class to make the objects accessible to my different threads in an easy manner.

Anyone have any suggestions as to why this is happening and how to fix it? Thanks alot!

[883 byte] By [drstokesa] at [2007-9-28 16:55:37]
# 1
the *** crossposted http://forum.java.sun.com/thread.jsp?forum=31&thread=379565&start=0&range=15#1623195
outawatera at 2007-7-12 14:15:01 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2

Get a grip outwater, no one was responding to this one so I figured I would try a more popular thread. I got a response almost immediately on the other one and was just coming back to tell people what solved my problem in case they had the same one. I didn't know doing that would make me into an "evil" cross poster.

To those that may encounter the same problem as I had. The solution that worked for me was posted by Friedrich Hoffmann. All I had to do was delete all of the .class files for my program and recompile the .java files. The problem was that the compiler wasn't recognizing that my classes had changed and didn't recompile them, thus throwing the runtime errors at me. Thanks again to Friedrich Hoffmann for the solution.

drstokesa at 2007-7-12 14:15:01 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...