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

Kevin Sapper kevinsapper88 at gmail.com
Sat Jul 30 20:15:07 CEST 2016


I recommend using jeromq which is pure java hence no native library
installation. Unless you absolutely need the best performance, but in that
case you still can switch to jzmq as they both have the same API.

2016-07-30 18:01 GMT+02:00 Yoav Agami <yoavagami at yahoo.com>:

> 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 error
> 2)
>     -    "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/jeromq
> Wrapper for libzmq: https://github.com/zeromq/jzmq
> The 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 files
> 2) Import org.zeromq.ZMQ
> 3) 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
>
>
>
> _______________________________________________
> 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/4723d8cc/attachment.html>


More information about the zeromq-dev mailing list