java interacts with erlang