hi all
I have a class gui and a class server. I am using netbeans and there are no errors in those two classes. In the main class I have this :
public class Main {
public static void main(String[] args) {
MyServerGui g=new MyServerGui();
MyServer server1 = new MyServer(g);
server1.execute();
}
}
but I get the error:
symbol : constructor MyServer(project.Server.MyServerGui)
location: class project.Server.MyServer
MyServer server1 = new MyServer(g);
I have a constructor in MyServer class :
public MyServer(MessageListener listener)
{
this.Listen = listener;
}
I also tried running it in command line but it I get cant find symbol MyServerGui and MyServer. why is that?
any help would be great.
thank you