Not to mention you need the JVM installed too and believe me when I say there are plenty of us who are sick of the JVM and its incessant auto-updater.
Instead they have an application already written in Java, or some other compelling reason to write the application in Java. Given that there is already a dependency on the JVM, it is silly to add another dependency on a particular host platform. It is silly to force the compile process to become aware of the host platform, when it otherwise wouldn't need to be.
Easy, just use RoboVM or Aicas
> Or many embedded devices for that matter.
There are lots of commercial JDKs that compile directly to native code.
Most of the embedded devices that cannot be targeted by Java wouldn't support running something like ZeroMQ anyway.
If your code runs on the JVM, it should run on, well, the JVM. It shouldn't run partly on the JVM and partly on the host machine, since that breaks the purpose of using the JVM.