rmic - The Java RMI Stub Compiler

rmic compiles stubs and skeletons for a remote object from the compiled Java class.

SYNOPSIS

rmic [ options ] package-qualified-class-name

DESCRIPTION

The rmic command compiles the appropriate stubs and skeletons for a specific remote object implementation. The compiler is invoked with the package qualified class name of the remote object class.

The class must previously have been compiled successfully with the javac command.

The location of the imported classes may be specified either with the CLASSPATH environment variable or with the -classpath command line argument. The stubs and skeletons are placed in the current directory unless the -d argument is specified, following the same mechanism for writing class files as javac

OPTIONS

-classpath path
Specifies the path rmic uses to look up classes. Overrides the default or the CLASSPATH environment variable if it is set. Directories are separated by colons on UNIX and by semicolons on WIN95. For example, on UNIX the general format for path is:
.:<your_path>
For example:
.:/usr/local/java/classes

-d directory
Specifies the root directory of the class hierarchy. Thus executing:
rmic -d <my_dir> MyClass
causes the stubs and skeletons for the classes in the MyClass.java source file to be saved in the directory my_dir.

ENVIRONMENT VARIABLES

CLASSPATH
Used to provide the system a path to user-defined classes. Directories are separated by colons, for example,
.:/usr/local/java/classes

SEE ALSO

javac