[zeromq-dev] Using ZMQ - Communication between c++ / java

Yoav Agami yoavagami at yahoo.com
Sat Jul 30 18:01:35 CEST 2016


Hi Kevin,
I am trying to set up the jzmq option.
Unfortunately, after reading the readme.md and  http://zeromq.org/bindings:java, the project still does not compile, and can't use JZMQ API in Java project.
Do you know where can I download the run time dll / jar -> add references to my Java project, and use the existing Java API's?
The errors I got after following the steps:
1) Missing header files. After coping them to path got next error2)    -    "zmq_curve_keypair" is undefined c:\jzmq\jzmq-jni\src\main\c++\Curve.cpp 34 14 jzmq    -    error C2664: 'uint8_t *zmq_z85_decode(uint8_t *,char *)' : cannot convert argument 2 from 'const char *' to 'char *' C:\jzmq\jzmq-jni\src\main\c++\Curve.cpp 71 1 jzmq
I updated:* Additional Include Directory: \jdk1.8.0_51\include, \jdk1.8.0_51\include\win32, c:\ZeroMQ\include* Linker Addition Library Dependencies c:\ZeroMQ\lib
Any help with be very appreciated!
Thanks,Yoav

 

    On Friday, July 29, 2016 7:58 PM, Kevin Sapper <kevinsapper88 at gmail.com> wrote:
 

 Hi Yoav, Pure Java implementation: https://github.com/zeromq/jeromqWrapper for libzmq: https://github.com/zeromq/jzmqThe project README should contain all information you need. //Kevin 
Am 29.07.2016 14:53 schrieb "Yoav Agami" <yoavagami at yahoo.com>:

Hi All,
I am trying to develop communication between two applications (c++, Java).Currently I am able to create Client/Server communication between two c++ applications using ZMQ, but facing issues getting the Java side using ZMQ API and sending messages to c++ side. I tried to use the code from ZMQ examples.
My question:It should be easy, but I am not able to use the basic example (client / server) in Java. I thought that I should do the following:
1) Open new Java project and add relevant existing JAR files2) Import org.zeromq.ZMQ3) Use ZMQ API
But didn't find in the official site the JAR's / after downloading from external website jzmq-3.0.0 it doesn't work as expected.
Am I missing something basic? What is the correct way to use ZMQ API's?Is there a guide "how to set up the project and test a simple client/server hello world in Java"
Any input is very appreciated!
Thanks,Yoav
_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160730/c1de5721/attachment.htm>


More information about the zeromq-dev mailing list