RMI connection refused
问题 I am trying to get a rmi connection going. I have ran into many security issues but have been unable to find a way past all this. I execute my jar file with: java -Djava.security.policy=java.security.AllPermission -jar "myjarfile" The code I have been using to create this is: public class server { public static void main(String args[])throws Exception { if (System.getSecurityManager() == null) System.setSecurityManager ( new RMISecurityManager() { public void checkConnect (String host, int