slice2java (1) - Linux Manuals

slice2java: The Slice to Java compiler.


slice2java - The Slice to Java compiler.


slice2java [options] [files]


slice2java compiles Slice files to Java. Full documentation for slice2java is available online at:


-h, --help

Displays a help message.

-v, --version
Displays the compiler version.


Defines the preprocessor symbol NAME.


Defines the preprocessor symbol NAME with the value DEF.


Undefines the preprocessor symbol NAME.


Add the directory DIR to the search path for #include directives.


Print the preprocessor output on stdout.

--output-dir DIR

Place the generated files into directory DIR.

-d, --debug

Print debug information showing the operation of the Slice parser.


Permit use of the normally reserved prefix Ice for identifiers. Use this option only when compiling the source code for the Ice run time.


Permit use of underscores in Slice identifiers.


Generate tie classes.


Generate sample implementation files. This option will not overwrite an existing file.


Generate sample implementation files using tie classes. This option will not overwrite an existing file.

--checksum CLASS

Generate checksums for Slice definitions into the class CLASS. The given class name may optionally contain a package specifier. The generated class contains checksums for all of the Slice files being translated by this invocation of the compiler.


Generate streaming helper functions for Slice types.

--meta META

Define the global metadata directive META. Using this option is equivalent to defining the global metadata META in each named Slice file, as well as in any file included by a named Slice file. Global metadata specified with --meta overrides any corresponding global metadata directive in the files being compiled.