- Build the image
docker-compose build
- Start the container
docker-compose up -d
- Run the file and start listening for incoming messages using
iex --sname beam_node --cookie cookie main.ex
- Compile:
javac java/src/java_node/*.java -d java/out/ -classpath ".:/usr/local/otp/lib/erlang/lib/jinterface-1.13.2/priv/OtpErlang.jar"
- Execute the Main class:
java -classpath "java/out:/usr/local/otp/lib/erlang/lib/jinterface-1.13.2/priv/OtpErlang.jar" java_node.Main
- Open terminal and compile the file using
erlc main.erl
- Run the file and start listening for incoming messages using
erl -sname beam_node -setcookie cookie -eval "main:start()"