rmic 还需要吗? [英] Is rmic still needed?

查看:47
本文介绍了rmic 还需要吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

java 1.5 或更新版本不需要 rmi 接口编译器是真的,只编译用 javac 定义 UnicastRemoteObject 的 java 文件就足够了吗?Rmic 仍然有效,如果你提供它,它会生成一个存根类文件远程对象实现的类文件.

Is it true that the rmi interface compiler is not needed for java 1.5 or newer and that just compiling the java file where the UnicastRemoteObject is defined with javac is enough?Rmic still works and it generates a stub class file if you give it the class file of the implementation of the remote object.

推荐答案

根据 RMI 教程:

http://download.oracle.com/javase/tutorial/rmi/概览.html

编译源

与任何 Java 程序一样,您使用javac编译器编译源码文件.源文件包含远程接口的声明,他们的实现,任何其他服务器类和客户端类.注意:对于之前的版本Java 平台,标准版 5.0,需要一个额外的步骤使用 rmic 构建存根类编译器.不过这一步不行不再需要.

As with any Java program, you use the javac compiler to compile the source files. The source files contain the declarations of the remote interfaces, their implementations, any other server classes, and the client classes. Note: With versions prior to Java Platform, Standard Edition 5.0, an additional step was required to build stub classes, by using the rmic compiler. However, this step is no longer necessary.

这篇关于rmic 还需要吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆