Thx for the answer ...
When I try to connect to the server, which is launched from the same PC (localhost) and is listening for incoming connections I got the folloqing error ... do u have any clou?

java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkExit(SecurityManager.java:765)
at java.lang.Runtime.exit(Runtime.java:91)
at java.lang.System.exit(System.java:701)
at MoveWatcher.run(MoveWatcher.java:87)