[erlang-questions] Calling Java from Erlang

Lars-Åke Fredlund <>
Tue Jan 10 13:52:46 CET 2012

On 01/10/2012 12:15 PM, Robert Raschke wrote:
> On Mon, Jan 9, 2012 at 5:44 PM, ilya goberman < 
> <mailto:>> wrote:
>     Hello,
>     We are a market data API vendor. We have APIs to consume market
>     data in Java, .Net, and C++. One of the clients indicated interest
>     in using our API from Erlang.
>     So I would like to find out if it is possible to interface with
>     any of these language APIs from Erlang.
>     I looked briefly at jinterface, but it appears to be designed to
>     make calls from Java to Erlang, but not in the other directions.
>     I have found a post
>     http://www.javalimit.com/2010/06/a-java-api-for-erjang.html for
>     the Erlang-java calls, but it does not seem to be a finished product.
>     What is the best bet to accomplish the integration?
>     Any advice is appreciated.
>     Thanks
> Erlang uses message passing as it's primary communication mechanism. 
> Thus you could write a small Java program utilising the Jinterface 
> library to enable it to receive messages from Erlang, marshalling to 
> your API and sending results back using the messaging again.
You could also take a look at the JavaErlang library which tries to 
reduce the amount of boilerplate code you have to write to call Java 
from Erlang.
See https://github.com/fredlund/JavaErlang.

We use it internally here to test student libraries written in Java.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120110/bbe83da0/attachment.html>

More information about the erlang-questions mailing list