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

Steven McCoy steven.mccoy at miru.hk
Wed Oct 26 19:20:24 CEST 2011


2011/10/26 Igor 'Lo' (И.L.) <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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111026/5c154001/attachment.htm>


More information about the zeromq-dev mailing list