---
title: "load"
sidebar_label: "load"
description: "Kotlin binding reference: load."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[Modelverse](index.md)/[load](load.md)

# load

[common]\
fun [load](load.md)(license: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)? = null)

Load the runtime, the model library and the bridge, in that order, then read the library's version. [license](load.md) is the runtime's license credential (the `CLIKA1-...` text, or the path of a file holding it), placed for this process before the first model runs; `null` leaves the process environment as it is (the runtime then reads its own variable, or the per-user license file). The credential is handed to the runtime and never logged. A second call is a no-op.

#### Throws

| | |
|---|---|
| [ModelverseException](../ModelverseException/index.md) | when a library does not load or the bridge's handshake with the model library fails; the message says which step. |