I want to send and receive data from Matlab and MetaTrader 5 on Windows 10. According to this post, JeroMQ is the easiest route to go:
- I cloned the repo from https://github.com/zeromq/jeromq
- I installed maven
- Then I went into the repository root and start building it using: mvn package, which produced the following error message:
[ERROR] Failures:
[ERROR] TestEvents.testEventConnectRetried:85 No event was received
[ERROR] Errors:
[ERROR] PollTest.testPollUdp:100 » Bind Cannot assign requested address:
connect
[INFO]
[ERROR] Tests run: 588, Failures: 1, Errors: 1, Skipped: 17
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:48 min
[INFO] Finished at: 2019-09-12T18:51:01+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project jeromq: There are test failures.
I tried to fix this by setting the IP configuration for the localhost to 127.0.0.1 according to these posts:
- https://help.mulesoft.com/s/article/What-does-java-net-BindException-Cannot-assign-requested-address-mean
- ZMQError: Cannot assign requested address
which did not fix the problem (same error message).
I think it is related to some IP settings, but I am new to socket communication. I have no experience in Java programming/debugging. Please help me to fix this, so the .jar
file is built successfully and I can add it to my javaclasspath
in Matlab.
Otherwise: Is there an (easy) alternative way to establish Matlab socket communication with other programs (e.g. via ZeroMQ)?