Sample Erlang application using JInterface