Compile to jvm

From Liberty Eiffel Wiki
Revision as of 19:38, 6 June 2005 by SEWikiImport Pini (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


compile_to_jvm is an alternative compiler that produces Java byte-code. It generates a subdirectory named from the main class of a project that is suitable for either direct execution or JAR generation.

Synopsis

  • compile_to_jvm [options] <Root-Class> <Root-Procedure>
  • compile_to_jvm [options] <ACEfilename>
  • compile_to_jvm -help

This tool works similarly to the standard compile_to_c compiler and thus shares many options: assertion control, path loading...

Current (2.2) specific options are:

  • -jar: tell the compiler to also produce a .jar file of the project
  • -run: tell the compiler to automatically run the project after successful compilation
  • -use_jar <jar>: use <jar> application to generate the .jar file instead of the default one (implies -jar)
  • -use_jvm <jvm>: use <jvm> to run the program instead of the default one (implies -run)