Anderson Green
Anderson Green

Reputation: 31800

Using Haxe code in Java

Is there any way to use compiled Haxe code in a Java application (instead of vice-versa?) I want to write a library of functions in Haxe, compile the Haxe code to Java, and then use the compiled Haxe library in a Java application.

Upvotes: 1

Views: 438

Answers (1)

blue112
blue112

Reputation: 56412

Sure you can.

You just have to use Haxe / Java.

It will generate some .java class and compile them into a .jar.

You can then either use the .jar as a normal Java jar, or use directly the Java classes. It's still under heavy development, so it may require some minor hacks, but its globally working great.

Upvotes: 1

Related Questions