NAME
rmic - Java RMI stub compiler
SYNOPSIS
rmic [ -classpath path ] [ -d directory ] [ -depend ] [ -g ]
[ -keepgenerated ] [ -nowarn ] [ -O ] [ -show ]
[ -verbose ] package-qualified-class-names
DESCRIPTION
The rmic compiler generates stub and skeleton class files
for remote objects from the names of compiled Java classes
that contain remote object implementations. A remote object
is one that implements the interface java.rmi.Remote. The
classes named in the rmic command must have compiled suc-
cessfully with the javac(1) command and be fully package-
qualified. For example, running rmic on the class file name
HelloImpl as shown here:
example% rmic hello.HelloImpl
creates the HelloImpl_Skel.class and HelloImpl_Stub.class
files.
A skeleton for a remote object is a server-side entity con-
taining a method that dispatches calls to the remote object
implementation.
A stub is a proxy for a remote object that is responsible
for forwarding method invocations on remote objects to the
server where the actual remote object implementation
resides. Therefore, a client's reference to a remote object
is actually a reference to a local stub.
The stub implements only the remote interfaces, not local
interfaces also implemented by the remote object. Because
the stub implements exactly the same set of remote inter-
faces as the remote object, a client can use the Java
language's built-in operators for casting and type-checking.
OPTIONS
The following options are supported:
-classpath path Specifies the path rmic uses to look up
classes. Setting this option overrides
the default or the CLASSPATH environment
variable. Directories are separated by
colons. Thus, the general format for path
is:
.:<your_path>
For example:
.:/usr/local/java/classes
-d directory Specifies the root directory of the class
hierarchy. You can use this option to
specify a destination directory for the
stub and skeleton files. For example, the
command:
% rmic -d /java/classes/foo.MyClass
would place the stub and skeleton classes
derived from MyClass into the directory
/java/classes/foo. If the -d option is
not used, the package hierarchy of the
target class is ignored, and stub and
skeleton files are placed in the current
directory.
-depend Causes the compiler to recompile classes
referenced by other classes. Normally,
the compiler only recompiles missing or
out-of-date classes referred to from
source code.
-g Enables debugging table generation. Debug-
ging tables contain information about line
numbers and local variables. This infor-
mation is used by Java debugging tools.
By default, only line numbers are gen-
erated, unless optimization (-O) is turned
on.
-keepgenerated Retains the generated .java source files
for the stubs and skeletons. If the -d
option if specified, -keepgenerated writes
them to the same directory as the .class
files.
-nowarn Turns off warnings. If used, the compiler
does not print warnings.
-O Optimizes compiled code by inlining
static, final, and private methods.
Please note that your classes may get
larger.
-show Shows the GUI (graphical user interface)
for the rmic compiler. Enter one or more
package-qualified class names (separated
by spaces) and press either the ENTER key
or the SHOW button to create stubs and
skeletons.
-verbose Causes the compiler and linker to display
messages about the classes being compiled
and what class files being loaded.
ENVIRONMENT VARIABLES
CLASSPATH Used to provide the system with a path to
user-defined classes. Directories are
separated by colons. For example,
.:/usr/local/java/classes
ATTRIBUTES
See attributes(5) for a description of the following attri-
butes:
__________________________________
| ATTRIBUTE TYPE| ATTRIBUTE VALUE|
|_______________|__________________|_
| Availability | SUNWjvdev |
|_______________|_________________|
SEE ALSO
javac(1), attributes(5)
|
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |