Is there a way for hxcpp to cross compile with Java?

83 views Asked by At

I am asking this question because I keep getting an error with NativeCFFI in a haxeflixel project (it's not my project) when I try to build Java with haxeflixel's lime, and I am wondering what I should do to make hxcpp cross compile with Java? A command I need to run, or code that should be imported? I want to know how I can do this. I apparently tried to exclude NativeCFFI but then found out later it was needed.

1

There are 1 answers

1
meltingscales On

EDIT: Found this: https://gist.github.com/darmie/99fbd3512b49d0b8cc11fb93bf2b3f8c. Not sure if it works.

I'm not sure how to do this (Maybe you can make a GitHub issue on HaxeFlixel's page), but you could possibly use REST APIs as a way to use Java code within HaxeFlixel -- https://api.haxeflixel.com/lime/net/HTTPRequest.html -- expose your Java app over a REST API and consume it using lime.net.HTTPRequest.