使用 Eclipse 构建 Java RMI 应用程序(如何执行 rmic)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4266079/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Build Java RMI applications with Eclipse (How to do rmic)
提问by Shamal Karunarathne
I'm trying to develop a Java RMI application and found out that it's not straight forward to tell eclipse to compile it using rmic.
我正在尝试开发一个 Java RMI 应用程序,但发现告诉 eclipse 使用 rmic 编译它并不简单。
Are there any available addons (if so which one do you recommend)?
是否有任何可用的插件(如果有,您推荐哪一个)?
or
或者
what are the ways to accomplish this?
有什么方法可以做到这一点?
Thanks.
谢谢。
采纳答案by Sanjay T. Sharma
As of Java 5 there is no need to use the rmic
tool since stubs are now dynamically generated. I'd suggest following an updated tutorial which is more geared towards RMI implementations for Java 5 or greater. Following the RMI Guide for Java 5should give you a decent start.
从 Java 5 开始,不再需要使用该rmic
工具,因为现在可以动态生成存根。我建议遵循更新的教程,该教程更适合 Java 5 或更高版本的 RMI 实现。遵循Java 5的RMI 指南应该会给您一个不错的开始。
回答by bdhar
You have plugins for eclipse for RMI applications like this one: http://www.genady.net/rmi/index.html
您有用于 RMI 应用程序的 Eclipse 插件,例如:http: //www.genady.net/rmi/index.html
Edit: Also, some free plugins like this: http://sourceforge.net/projects/rmi-eclipse/
编辑:另外,一些像这样的免费插件:http: //sourceforge.net/projects/rmi-eclipse/