vjalmr
(Vjalmr)
February 27, 2025, 6:57pm
1
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.
logo
February 27, 2025, 7:41pm
2
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.
vjalmr
(Vjalmr)
February 27, 2025, 8:00pm
3
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.
ablum
(Alexander Blum)
February 27, 2025, 8:55pm
4
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)
vjalmr
(Vjalmr)
February 28, 2025, 11:17am
5
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.
vjalmr
(Vjalmr)
March 1, 2025, 10:51pm
6
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