# jdx doctor

IDE equivalent: Self-diagnosis (JDK, index, AppCDS, daemon, workspace)

Check the jdx environment and report one ok/warn/fail row per check (JDK, javap, cache, config, index, Kotlin module, AppCDS archive, daemon, workspace, agent setup). Exits 6 if any check fails. With --json, print the same report in the JSON envelope.

## Usage

```text
jdx doctor [<options>]
```

## Options

| Option | Description |
|---|---|
| `--json` | Emit machine-readable JSON instead of human-readable text (same information, D-007). |
| `-h, --help` | Show this message and exit |

## Full help text

```console
$ jdx doctor --help
Usage: jdx doctor [<options>]

  Check the jdx environment and report one ok/warn/fail row per check (JDK, javap, cache, config, index, Kotlin module, AppCDS archive, daemon, workspace, agent setup). Exits 6 if any check fails. With --json, print the same report in the JSON envelope.

Options:
  --json      Emit machine-readable JSON instead of human-readable text (same information, D-007).
  -h, --help  Show this message and exit
```

## Learn more

Guide: [Installation](https://mohammadmd1383.github.io/jdx/docs/installation/) · [All commands](https://mohammadmd1383.github.io/jdx/docs/reference/)
