# runtime-kit 1.0 > Plan a Java application for the JVM or a native executable. Each page below is Markdown; the HTML page of the same name has the same content. llms-full.txt has every page in one file, and api.json is the apidocs/1 model. ## When to use this Use this API reference when you write, read or review code that uses runtime-kit 1.0. Plan a Java application for the JVM or a native executable. ## Overview - [⬢ runtime-kit](index.md): packages and types - [Alphabetical index](index-all.md): one file per first letter (index-all/D.md has defaults), each line a declaration, its summary and the address to cite. Check the declaring type and overload. - [Declaration contracts](contracts.ndjson): full structured records for a known `Type.member`, including documented parameters, returns and throws. - [llms-full.txt](llms-full.txt): every page in one file - [api.json](api.json): the apidocs/1 model ## Guides Read these first: they explain the concepts the reference pages assume. - [¶ Write a preparation step](guides/custom-step.md): Use the generic extension point to derive a launch command. - [¶ Feature tour](guides/feature-tour.md): Follow the Runtime Kit sample from its API contracts through the build artifacts and generated documentation formats. - [¶ Prepare your first build](guides/prepare-a-build.md): Create an immutable plan, select a runtime, and handle validation errors. - [⬢ Native Image](build-info/native-image.md) - [⬢ JVM artifacts](build-info/jvm-artifacts.md) - [⬢ Attachments](build-info/attachments.md) ## Pages - [▣ Package example.runtime](example/runtime/index.md): Plans Java applications for a local JVM or native executable. - [▤ BuildPlan (record in example.runtime)](example/runtime/BuildPlan.md): Describes how to build a Java application as a native executable. mainClass: the fully qualified entry point arguments: compiler arguments in invocation order BuildPlan(String, List): Creates a plan with a stable copy of the arguments. defaults(String): Returns a plan for the entry point using default compiler settings. Returns: a plan with an empty argument list toString(): Returns a string containing the record class name and its component names and values. hashCode(): Returns a hash code computed from the record components. equals(Object): Returns whether the other object is a record of the same class with equal components. mainClass(): the fully qualifie - [◇ BuildStep (interface in example.runtime)](example/runtime/BuildStep.md): A named phase in the preparation of a BuildPlan. prepare(BuildPlan): Prepares an artifact without executing the application. Returns: the prepared artifact Throws: PlanException - if the configuration cannot be prepared - [@ Experimental (annotation interface in example.runtime)](example/runtime/Experimental.md): Marks a runtime API whose contract may evolve before the next release. since(): The version in which the experiment began. - [@ HotPath (annotation interface in example.runtime)](example/runtime/HotPath.md): Marks operations used during plan lookup. - [◆ PlanCatalog (class in example.runtime)](example/runtime/PlanCatalog.md): Looks up immutable build plans by name. FORMAT_VERSION: The catalog format version. PlanCatalog(Map): Creates a catalog from a snapshot of the supplied plans. find(String): Looks up the plan associated with a name. Returns: the matching plan, or null on a miss names(): Returns the available keys in sorted order. Returns: the keys, which are non-null lookup(String): Deprecated. Use find(String) for an explicit nullness contract. Returns a plan through the legacy lookup contract. Returns: the lookup result - [⚡︎ PlanException (exception in example.runtime)](example/runtime/PlanException.md): Indicates that a BuildPlan cannot be prepared. PlanException(String): Creates a failure with an explanation suitable for the build log. - [◆ Planner (sealed abstract class in example.runtime)](example/runtime/Planner.md): Validates a BuildPlan before handing it to a BuildStep. target(): Identifies the runtime for prepared plans. Returns: the selected target prepare(BuildPlan): Validates that the plan names an entry point. Returns: the validated plan Throws: PlanException - when the entry point is blank - [◆ Planner.Local (class in example.runtime)](example/runtime/Planner.Local.md): Prepares builds against a locally installed toolchain. Local(Planner.Options): Uses explicit planning options. Local(Target): Uses the supplied target with quiet progress. target(): Identifies the runtime for prepared plans. Returns: the selected target runtime(): Deprecated. Use target(). Returns the configured runtime. Returns: the selected target - [▤ Planner.Options (record in example.runtime)](example/runtime/Planner.Options.md): Configuration for Local, including how to report progress. target: the runtime detail: the amount of progress to report toString(): Returns a string containing the record class name and its component names and values. hashCode(): Returns a hash code computed from the record components. equals(Object): Returns whether the other object is a record of the same class with equal components. target(): the runtime detail(): the amount of progress to report - [≡ Planner.Options.Detail (enum class in example.runtime)](example/runtime/Planner.Options.Detail.md): Controls progress while preparing a plan. QUIET: Report only the result. VERBOSE: Include each preparation step. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. - [≡ Target (enum class in example.runtime)](example/runtime/Target.md): Selects the runtime that will consume a BuildPlan. JVM: Use the installed Java virtual machine. NATIVE: Compile an operating-system executable. values(): Returns the enum constants in declaration order. valueOf(String): Returns the enum constant with the given name. ## Indexes - [Packages](packages.md): every package with its summary and type counts - [All types](types.md): every type, nested ones too, by name - [Index](index-all.md): every declaration from A to Z - [Deprecated](deprecated.md): everything deprecated, for removal first