1. Home
  2. Docs
  3. Getting started
  4. Installing Haxe compiler

Installing Haxe compiler

For this guide, I will presume that all Haxe related files will be installed in the c:\HaxeToolkit\ directory. Make sure to update the paths if you install your files somewhere else!

Haxe

Installing

Haxe is a cool programming language that can compile to multiple platforms. It’s free and open-source.

Install it (including Neko) to a folder like: c:\HaxeToolkit

Important: for the next sections of this tutorial, I’ll assume Haxe is installed in this folder.

After the setup, you should get 2 folders:

  • c:\HaxeToolkit\haxe: the compiler and all the standard libraries
  • c:\HaxeToolkit\neko: the Neko VM which is used internally.

Does it work?

  • Open a command line,
  • Type haxe, you should see something like that:

If you get a “file not found” error:

  1. reboot,
  2. check again,
  3. if it still doesn’t work, re-install.

Hashlink

Installing

Hashlink (HL) is Haxe virtual machine. We use it to build cross-platform titles.

Install it to the Haxe toolkit folder: c:\HaxeToolkit\hl

Important: you must add all the Hashlink (hl.exe) folder to your PATH environment variable (how?).

Does it work?

From a command line, type hl:

If it doesn’t work:

  1. reboot,
  2. check again,
  3. if you get an error, type where hl,
  4. if you get an unknown command error, check your PATH environment variable.

Working with VSCode (recommended)

VScode is a nice IDE that features full Haxe integration if you install the dedicated extension. Out of the box, you’ll get code completion, easier project setup, debugging & much more.

Please note that you can do that from the extension panel. See below:

Use the built-in extension browser to get latest Haxe Extension Pack