Fedora Linux 系统调用或常用命令详细解析 rmic

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

NAME

rmic − The Java RMI Compiler

rmic generates stub, skeleton, and tie classes for remote objects using either the JRMP or IIOP protocols.

Also generates OMG IDL.

SYNOPSIS

rmic [ options ]package−qualified−class−name(s)

DESCRIPTION

The rmic compiler generates stub and skeleton class files (JRMP protocol) and stub and tie class files (IIOP protocol) for remote objects. These classes files are generated from compiled Java programming language classes that are remote object implementation classes. A remote implementation class is a class that imple-ments the interface java.rmi.Remote.The class names in the rmic command must be for classes that have been compiled successfully with the javac command and must be fully package qualified. For example, running rmic on the class file name HelloImpl as shown here:

rmic hello.HelloImpl

creates the HelloImpl_Stub.classfile in the hello subdirectory (named for the class’s package).

A skeleton for a remote object is a JRMP protocol server−side entity that has a method that dispatches calls

to the actual remote object implementation.

A tie for a remote object is a server−side entity similar to a skeleton, but which communicates with the

client using the IIOP protocol.

A stub is a client−side proxy for a remote object which is responsible for communicating method invoca-

tions on remote objects to the server where the actual remote object implementation resides. A client’s ref-erence to a remote object, therefore, is actually a reference to a local stub.

By default,rmic generates stub classes that use the 1.2 JRMP stub protocol version only,as if the−v1.2 option had been specified. (Note that the−vcompat option was the default in releases prior to 5.0.) Use the −iiop option to generate stub and tie classes for the IIOP protocol.

A stub implements only the remote interfaces, not any local interfaces that the remote object also imple-

ments. Because a JRMP stub implements the same set of remote interfaces as the remote object itself, a client can use the Java programming language’s built−in operators for casting and type checking. For IIOP, the PortableRemoteObject.narrow method must be used.

OPTIONS

−bootclasspath path

Overrides location of bootstrap class files

−classpath path

Specifies the path rmic uses to look up classes. This option overrides the default or the CLASSPATH

environment variable if it is set. Directories are separated by colons. Thus the general format for path is: For example:

相关文档
最新文档