[zeromq-dev] Cannot build a working JZMQ on Windows: which git branch to take?

Joshua Foster jhawk28 at gmail.com
Wed Oct 26 22:19:52 CEST 2011


The simplest way to get jzmq working on windows is to put the libzmq.dll 
and the jzmq.dll in a directory on the PATH environment variable.

Joshua

On 10/26/2011 1:20 PM, Steven McCoy wrote:
> 2011/10/26 Igor 'Lo' (?.L.) <bombsiteunrested at gmail.com 
> <mailto:bombsiteunrested at gmail.com>>
>
>     Hi all.
>
>     I can't run even the simplest test case:
>
>
>     C:\zeromq\zeromq-jzmq-040c4c6\perf>java -Xcheck:jni -verbose:jni,class
>     -classpath .;C:\zeromq\zeromq-jzmq-040c4c6\lib\zmq.jar local_lat
>     127.0.0.1 1 1
>     Exception in thread "main" java.lang.UnsatisfiedLinkError:
>     org.zeromq.ZMQ$Context.construct(I)V
>            at org.zeromq.ZMQ$Context.construct(Native Method)
>            at org.zeromq.ZMQ$Context.<init>(ZMQ.java:306)
>            at org.zeromq.ZMQ.context(ZMQ.java:252)
>            at local_lat.main(local_lat.java:36)
>
>     Dlls are copied to same directory.
>     JNI headers are seems to be generated correctly (excerpt from
>     org_zeromq_ZMQ_context_h):
>     /*
>      * Class:     org_zeromq_ZMQ_Context
>      * Method:    construct
>      * Signature: (I)V
>      */
>     JNIEXPORT void JNICALL Java_org_zeromq_ZMQ_00024Context_construct
>      (JNIEnv *, jobject, jint);
>
>
>
>     What was tested:
>     JZMQ from git (two snapshots within a week range), ZeroMQ 2.1.0
>     snapshot, ZeroMQ current snapshot - in combinations with JDK 1.5, JDK
>     1.6 and VS C++ Express 2008, 2010. None worked.
>
>     Any thoughts on this?
>
>
> I'm getting it working from Git on x64 with SDK 7.1.  Java does seem 
> to be utterly incompetent on Windows wrt. paths.  I'm working on a 
> full post for Windows in a bit.
>
> -- 
> Steve-o
>
>
> _______________________________________________
> 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/20111026/dd3b4e57/attachment.htm>


More information about the zeromq-dev mailing list