[SOLVED] Eclipse Haxe4e - /usr/share/haxe does not point to a valid Haxe SDK

Hello everyone,

I run Debian 12.
Running Haxe in the command line works perfectly.

The executable is in /usr/bin/, the rest is in /usr/share/haxe/std/. Haxelib is in ~/development/haxelib/.

When I use either the Haxe4e plugin for Eclipse, or Haxe Studio, I get the error: /usr/share/haxe does not point to a valid Haxe SDK.

Has anybody else here had this error?
Thank you in advance.

Seems like you need to set the HAXEPATH environment variable to “/usr/bin/”… If that doesn’t work, you should probably make a GitHub issue on haxe4e. It isn’t very popular, most just use VSCode or Neovim.

Thank you for your reply, despite it not working.

I already posted on github. I will update here if there is any answer to this.

you might also have to set HAXE_STD_PATH so it learns the location of your std folder. (I don’t use Haxe4e, so that’s just a guess)

Thanks for the tip.

I tried exporting both HAXE_STD_PATH and HAXEPATH, and the results are the same.
Your guess was as good as any.

Hello everyone.

It took me a while, but I finally managed to get it working. I looked through the source, and found that it is dependent on 3 paths:

$HAXEPATH
$HAXE_STD_PATH
$HAXELIB_PATH

If I export all three, then launch, it works.

Looking further, it probably also requires the following:

$NEKOPATH
$NEKO_INSTPATH

Leaving this here in case anybody else has the same issue.
Thanks for all your help.

Edit:

Here is a little script you can use in your path:

#! /bin/bash

# Haxe - Replace paths with your installation
export HAXEPATH=/usr/bin/
export HAXE_STD_PATH=/usr/share/haxe/std/
export HAXELIB_PATH=~/development/haxelib/

# Neko - Replace paths with your installation
export NEKOPATH=/usr/bin/
export NEKO_INSTPATH=/usr/lib/x86_64-linux-gnu/neko/

exec ~/.eclipse/java-2024-09/eclipse/eclipse

Just chmod u+x that, and it should all work.

3 Likes