As its seen I use policy.all with all permissions granted and both server and client run in the same machine. I have also probed with multicast search but i have the same problem.When I run the server I get:
********************************************************* Exception in thread "main" java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:4160 connect,resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:27 0) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1044) at java.net.Socket.connect(Socket.java:419) at java.net.Socket.connect(Socket.java:375) at java.net.Socket.<init>(Socket.java:290) at java.net.Socket.<init>(Socket.java:118) at net.jini.core.discovery.LookupLocator.getRegistrar(LookupLocator.java:197) at net.jini.core.discovery.LookupLocator.getRegistrar(LookupLocator.java:174) at FileClassifierServer2.<init>(FileClassifierServer2.java:72) at FileClassifierServer2.main(FileClassifierServer2.java:27)
I think the server finds a service locator but there is a port trouble or similar.I m very conffused because I have no problems at home. I would be very pleasure if somebody answer to my question.