搜索了,没有找到满意答案,请教一下,如何在代码里配置-D 参数? 比如下面的代码,怎么配置"-Djava.security.policy="? 谢谢!! if (System.getSecurityManager() == null) { System.setSecurityManager(new RMISecurityManager()); } String name = "//10.9.8.7/RMIImpl"; try { RMIImpl app = new RMIImpl(); Naming.rebind(name, app); System.out.println("RMIImpl bound" ; } catch (Exception e) { System.err.println("RMIImpl exception: " + e.getMessage()); e.printStackTrace(); } RMI,如何在代码里设置-D 选项
|