Hi,
I have created a server application (very simple) when i run it by using JCreator it goes well and it wates untill a client connect on it.
for the first time i used NetBeans and I made my first
Java Application I added my Server to the project and removed the main method of the server.
the main method of the Main class of my project looks like this.
public static void main(
String[] args)
{
int port = 7500;
MyServer MS = new MyServer(port);
MS.accept();
}
when i compile it , it goes well and it does not generate any error but when i run my project i get following error:
Exception in
thread "main" java.lang.NullPointerException
at MyPackage.MyServer.accept(MyServer.java:41)
thanks for your help