java1.5或更新版本不需要rmi接口(interface)编译器,只编译用javac定义UnicastRemoteObject的java文件就足够了吗?Rmic仍然有效,如果你给它,它会生成一个stub类文件远程对象实现的类文件。 最佳答案 根据RMI教程:http://download.oracle.com/javase/tutorial/rmi/overview.htmlCompilingSourcesAswithanyJavaprogram,youusethejavaccompilertocompilethesourcef