I’m on Haxe 4.0.5 yet, still waiting for 4.1.0 to arrive in Manjaro packages. And I’m experimenting with the JVM backend, I’m looking forward to use Haxe to glue together quite a few JVM libraries with my business logic written in Haxe, as I don’t generally like Java or Maven ecosystem or IntelliJ/Eclipse, but want to use those libraries. But anyway.
I was wondering why ‘–java-lib’ is not listed in the ‘–help’ of the compiler? I’ve had some hard time digging it up, so I could include some jars to Haxe project. Also the documentation on Java/JVM target is very lacking. “-D jvm” is kinda hard to find too.
Is it possible to add all jars in some specific folder, so I don’t have to add each jar manually to build.hxml? I’m having quite a few of them. For example I’m planning to use Apache Tika which is 118 jars and it will be a nightmare to add --java-lib for all of those manually.
Also I tried out calling Javalin library (which is a micro web framework) from Haxe, but after just importing it and referencing one class I got an error at compile time: “type not found java.util.function.consumer”. Why is it happening? Can I fix it somehow?