I worked myself through the available alternatives to integrate julia into java.
In the end both Jajub and JuliaCaller only worked to some degree. I made some modifications available here: https://github.com/invesdwin/invesdwin-context-julia
Discussions:
- Jajub: https ://github.com/org-arl/jajub/issues/2
- JuliaCaller: https ://github.com/jbytecode/juliacaller/issues/1
Both tools did not support multi-line commands, had some compatibility issues and performance bottlenecks.
Other libraries:
- LibJulia-CLJ (https ://github.com/cnuernber/libjulia-clj) would be very interesting to try, but it seems to be only useable with clojure. Though JNA might provide a faster approach to integrate Julia into Java.
- Ju4Ja (https ://github.com/lteb2002/ju4ja) seems to be similar to JuliaCaller, though not as developed because the server needs to be setup manually and there is no concept to transport arbitrary data bidirectional.
- JavaJNI2Julia (https ://github.com/lwhitefox/JavaJNI2Julia) is an example with JNI. Not useable for general purpose scripting.
- Julia4J (https ://github.com/rssdev10/julia4j) might be another option to JNA with JNI, seems a bit more developed but I could not get the binary to compile on linux, maybe the SWIG files are not up to date to work against newer version of Julia: https ://github.com/rssdev10/julia4j/issues/2
(had to add some spaces to the links because discourse does not allow me to add more than two links)