# Importing classes

The import system allows you to define Java class imports at the top of your script files. This enables the use of short class names within `invoke` commands and Java expressions.

### Syntax

Add an `import:` block at the root of your `.dsc` file.

```yaml
import:
  <full.class.name>
  <full.class.name> as <alias>
  <wildcard>
```

### Usage

```yaml
import:
  java.util.ArrayList
  org.bukkit.Bukkit as Server
  java.lang.*

MyTask:
  type: task
  script:
  - define version <invoke[Server.getVersion()]>
  - invoke System.out.println("test")
```
