I’m trying to create a simple webservice with jvm target. I’ve added jars for Spark with --java-lib switch, but I’m getting this error if I try to import anything from spark namespace: spark-core-2.9.2.jar@spark/Service.class@initExceptionHandler:1: character 1 : Type not found : java.util.function.Consumer
Though I don’t know which of these signatures would match your call even if it did work. Could you point me to the API documentation of that method and tell me which overload it’s supposed to pick up?
Edit: Ah, I missed that spark.Route is also an interface. In that case the signature is obvious.
What would be the simplest way to create “Hello world” microservice on JVM with haxe?
I’ve used Spark because it looked simple enough, but there are probably better ways.
Yes, a native Haxe lib would be much better solution (being cross-platform), but I haven’t found any.
Does think_web really support JVM? There are only js & php examples on the website.