---
title: "runtime-kit"
description: "Plan a Java application for the JVM or a native executable."
kind: "module"
module: "runtime-kit"
version: "1.0"
---

# ⬢ runtime-kit 1.0

Every page: [llms.txt](llms.txt), or all in one file: [llms-full.txt](llms-full.txt)

Plan a Java application for the JVM or a native executable.

Runtime Kit separates the configuration of an application from the tool that prepares it. An immutable [`BuildPlan`](example/runtime/BuildPlan.md) holds the entry point and compiler arguments. A [`Planner.Local`](example/runtime/Planner.Local.md) validates the plan for the chosen [`Target`](example/runtime/Target.md).

Start with the preparation guide for a runnable example, or explore the package reference for constructors, extension points, and error handling.

## Guides

- [Write a preparation step](guides/custom-step.md): Use the generic extension point to derive a launch command.
- [Prepare your first build](guides/prepare-a-build.md): Create an immutable plan, select a runtime, and handle validation errors.

## Packages

- [`example.runtime`](example/runtime/index.md): Plans Java applications for a local JVM or native executable.

## Types in `example.runtime`

- [`BuildPlan`](example/runtime/BuildPlan.md) (record): Describes how to build a Java application as a native executable.
- [`BuildStep`](example/runtime/BuildStep.md) (interface): A named phase in the preparation of a BuildPlan.
- [`Experimental`](example/runtime/Experimental.md) (annotation interface): Marks a runtime API whose contract may evolve before the next release.
- [`PlanException`](example/runtime/PlanException.md) (exception): Indicates that a BuildPlan cannot be prepared.
- [`Planner`](example/runtime/Planner.md) (sealed abstract class): Validates a BuildPlan before handing it to a BuildStep.
- [`Planner.Local`](example/runtime/Planner.Local.md) (class): Prepares builds against a locally installed toolchain.
- [`Planner.Options`](example/runtime/Planner.Options.md) (record): Configuration for Local, including how to report progress.
- [`Planner.Options.Detail`](example/runtime/Planner.Options.Detail.md) (enum class): Controls progress while preparing a plan.
- [`Target`](example/runtime/Target.md) (enum class): Selects the runtime that will consume a BuildPlan.
