> For the complete documentation index, see [llms.txt](https://easy-draw.joemazzone.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://easy-draw.joemazzone.net/java/setup-and-install.md).

# Setup and Install

The Java version of Easy Draw is a single file, `EasyDraw.java`, which can be found and downloaded from GitHub.

{% embed url="<https://github.com/MrMazzone/easy-draw/releases/download/v2.0.0/EasyDraw.java>" %}

## Easy Draw File

Once you have the `EasyDraw.java` file, put it in the same folder as your program (for example, next to `Main.java`).

```
my-project/
├── EasyDraw.java
└── Main.java
```

## Requirements

* **Java 17 or newer.** Check your version with `java -version`.
* **A web browser.** Easy Draw shows your drawing in your web browser.

Easy Draw only uses the Java standard library, so there is nothing else to install.

## Compiling and Running

Compile both files and run your program from the folder they are in:

```
javac *.java
java Main
```

When your program runs, Easy Draw:

1. Writes your drawing to an `index.html` file in the folder you run your program from.
2. Opens the live drawing in your web browser (<http://localhost:8765/>).

{% hint style="info" %}
Most editors (VS Code, IntelliJ, Replit, BlueJ, and others) compile every `.java` file in the folder for you, so pressing Run works as long as `EasyDraw.java` is in the same folder as your program.
{% endhint %}

See the [Starter Template](https://easy-draw.joemazzone.net/java/starter-template.md) to write your first program.
