For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Setup and Install

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

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

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:

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

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.

See the Starter Template to write your first program.

Was this helpful?