Skip to content

Instantly share code, notes, and snippets.

@otrack
Created November 14, 2018 13:23
Show Gist options
  • Save otrack/3c2a0c70a6e52d4a3ad6ffc0f631ce19 to your computer and use it in GitHub Desktop.
Save otrack/3c2a0c70a6e52d4a3ad6ffc0f631ce19 to your computer and use it in GitHub Desktop.
application:ensure_started(java_erlang).
{ok,NodeId} = java:start_node([{add_to_java_classpath,["vcd.jar"]}]).
Conf = java:call_static(NodeId,'org.imdea.vcd.Config',parseArgs,[""]).
Socket = java:call_static(NodeId,'org.imdea.vcd.Socket',create,[Conf,10]).
MsgSet = java:call_static(NodeId,'org.imdea.vcd.Generator',messageSet,[Conf]).
_ = java:call(Socket,send,[MsgSet]).
_ = java:call(Socket,'receive',[MsgSet]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment