COMMUNITY

How to set default java sdk for Haxe compile?

how to set default java sdk for Haxe compile?

both 1.7 and 1.8 was install on my system.

how to switch JAVA version to Haxe?

According to the source code of hxjava it seems to look for javac:

  • in the PATH
  • if not, in JAVA_HOME
  • if not, and if windows, it looks for the most recent version in C:\Program Files

This seem consistent enough with how compiling java code by hand works.
And otherwise using the latest version should be the best choice, not a lot of reason to use the old sdks.

Why do you want to force a specific sdk?

I just deleate old version and seem auto switch 1.8 now