# An easy way to call Julia function from Java

**URL:** <https://discourse.julialang.org/t/an-easy-way-to-call-julia-function-from-java/18357>\
**Category:** Internals & Design\
**Tags:** embedding\
**Created:** [December 6, 2018, 2:10am UTC](https://discourse.julialang.org/t/an-easy-way-to-call-julia-function-from-java/18357 "2018-12-06T02:10:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simonbyrne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simonbyrne/32/19_2.png) [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Post date:** [December 6, 2018, 4:38am UTC](https://discourse.julialang.org/t/an-easy-way-to-call-julia-function-from-java/18357/2 "2018-12-06T04:38:23Z")

</div>

From [this comment on the old mailing list](https://groups.google.com/forum/#!topic/julia-users/uutK5viQMjw) it looks like the easiest option would be to use JNI to interact with Julia via its C API, combined with [JavaCall.jl](https://github.com/JuliaInterop/JavaCall.jl) on the Julia side to handle the conversions (this is roughly analogous to how pyjulia works, using PyCall.jl on the Julia side).

As I mentioned on [another thread](https://discourse.julialang.org/t/julia-and-python-conda/18339/3):

> Unfortunately, bindings _from_ external languages aren’t the most popular thing for people to voluntarily work on, since “people who like to write Julia code” don’t directly benefit themselves from that work

---

_[View the full topic](https://discourse.julialang.org/t/an-easy-way-to-call-julia-function-from-java/18357)._
