---
title: "Target"
description: "Selects the runtime that will consume a BuildPlan."
kind: "enum class"
id: "example.runtime.Target"
module: "runtime-kit"
version: "1.0"
---

# Target

## API at a glance

- 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.

[runtime-kit](../../index.md) › [example.runtime](index.md) · Every page: [llms.txt](../../llms.txt)

Enum class in [`example.runtime`](index.md).

```java
public enum Target
```

Inheritance: `Object` > `Enum` > `Target`

Selects the runtime that will consume a [`BuildPlan`](BuildPlan.md).

## Enum constants

### JVM

```java
JVM
```

Use the installed Java virtual machine.

### NATIVE

```java
NATIVE
```

Compile an operating-system executable.

## Methods

### values()

```java
public static Target[] values()
```

Returns the enum constants in declaration order.

**Returns** [`Target`](Target.md)`[]`: Returns the enum constants in declaration order.

### valueOf(String)

```java
public static Target valueOf(String name)
```

Returns the enum constant with the given name.

**Parameters**

- `name` `String`: The exact name of the enum constant.

**Returns** [`Target`](Target.md): Returns the enum constant with the given name.

## Inherited members

- From class `Enum`: `compareTo`, `describeConstable`, `equals`, `getDeclaringClass`, `hashCode`, `name`, `ordinal`, `toString`, `valueOf`
- From class `Object`: `getClass`, `notify`, `notifyAll`, `wait`, `wait`, `wait`
