Scroll to navigation

ikvm(1) General Commands Manual ikvm(1)

NAME

ikvmc - compile java classes and jars into CIL assemblies

SYNOPOSIS

ikvmc [ -options ] class | jar ...

DESCRIPTION

IKVM is an implentation of the Java for the Common Language Infrastructure (CLI) runtime. It includes a byte code JIT compiler/verifier to translate Java byte code to CIL and GNU Classpath to provide the Java class libraries. ikvmc allows statically compiling of Java bytecodes in Java classes and jars into CIL assemblies. The ikvm(1) program provides dynamic compilation to CIL and execution.

The Java class or jar parameters may be file globs such as *.class and used to process multiple sources in one step. Duplicates specified in processing will be ignored, with a warning given.

OPTIONS

Set system property name to value at runtime.
Apply MTAThreadAttribute to the main class.
Don't apply STAThreadAttribute to the main class.
(default) Apply STAThreadAttribute to the main class.
Specify the generated assembly name to assembly-name If this option is omitted, the assembly name is usually the output filename.
Set the system property to disable assertions.
Generate debugging info in the output file. Only useful if the source class files contained debug information, such as compiled with the javac -g option.
Set the system property to disable assertions.
Set the system property to enable assertions.
Set the system property to enable assertions.
Use the list of classes in filename to exclude from compiling.
Use the key in the container keycontainer to sign the assembly.
Use the key in file keyfilename to sign the assembly.
Specify the main method class mainclass contains the main method. If omitted and the target is an executable, a search is done for a qualifying main method and ikvmc reports if it is found.
Do not glob the class or jar arguments.
Do not generate a JNI stub for native methods.
Do not create metadata to emit rich stack traces.
Remove unused private fields.
Set the output filename to outputfile. The extension used here must match the -target used. For a library, it must end in .dll and for an exe or winexe, it must end in .exe. If this option is omitted, an output name will be chosen based on the target type and the name of the input files. If the input files were given with globs, this option must be used.
Process all files and directories matching filespec which can use globbing.
Reference an assembly library-filespec used from Java. This option can be used multiple times and globbing is allowed.
Include a Java resource named name in file path.
Set the location of source code for debugging to path. The name of a package is appended to the path to find the file.
Set the generated target type to either a console executable (exe) generating a result.exe, library (library) generating a result.dll, windows executable for GUI applications (winexe) generating a result.exe or module for use by the linker (module) generating a result.netmodule. winexe is only used on Windows.
Build tracing into the specified output method method-name.
Displays all tracepoints with the given name name.
Set the assembly version to M.m.b.r.

SEE ALSO

ikvm(1), ikvmstub(1).

IKVM Project web site http://ikvm.net/

Man page by Dave Beckett, made available under the same terms as IKVM.

2005-06-19