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

hi

it is solved...no worries ;) :cheesy:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.