rmic compiles stubs and skeletons for a remote object from the compiled Java class.
rmic [ options ] package-qualified-class-name
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
- -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:
For example:.:<your_path>.:/usr/local/java/classes
- -d directory
- Specifies the root directory of the class hierarchy. Thus executing:
causes the stubs and skeletons for the classes in the MyClass.java source file to be saved in the directory my_dir.rmic -d <my_dir> MyClass
- CLASSPATH
- Used to provide the system a path to user-defined classes. Directories are separated by colons, for example,
.:/usr/local/java/classes
javac