[zeromq-dev] Java on windows issue

Tamara Kustarova kustarova at fastmq.com
Tue Jul 21 09:23:18 CEST 2009


Hi Robin,

you should run the latency tests in the following order:
1. zmq_server
2. j_remote_lat
3. j_local_lat

About the java pgm - we haven't tried it, but there is no reason why it 
shouldn't work.
We don't have any examples showing it, but we may create some later on.
You can have a look at the pgm throughput tests, that use simple pgm 
scenario.
If you come to any problems, just ask.

Tamara

Robin Weisberg napsal(a):
> Hi folks, I'm trying to evaluate zmq to see if it will work for a 
> trading system we are building out. We would be using linux servers w/ 
> c/c++ and java gui running on windows. We would want to use pgm primarily.
>
> First a question, I know you have pgm support for c/c++ on windows, I 
> see the pgm_local_thr.exe example. Any reason pgm wouldn't work for 
> Java on windows? I dont' see a specific example of it, so just asking 
> before I jump in.
>
> Regarding the issue, right now I'm trying to run a basic java example 
> on windows and it seems to instantly crash
>
> C:\zmq-1.0.0\perf>echo %PATH%
> C:\Program Files\Java\jdk1.6.0_14\bin;C:\
> WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
> Files\Intel\DMIXc:\cygwin\bin;C:\Program Files\MySQL\MySQL Server 
> 5.1\bin;c:\zmq-1.0.0\bin
>
> C:\zmq-1.0.0\perf>java -version
> java version "1.6.0_14"
> Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
> Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
>
> C:\zmq-1.0.0\perf>java -Djava.library.path=c:\zmq-1.0.0\java 
> -classpath c:\zmq-1.0.0\java;.\ j_local_lat localhost 1 10
> message size: 1 [B]
> roundtrip count: 10
>
> At this point I get the windows popup saying your program has crashed. 
> I'm able to get the c/c++ versions local_thr/pgm_local_thr and their 
> remote counterparts to work on the same machines and I can get the 
> j_local_thr and its remote counterpart to work too. This seems to be 
> specific to java and the latency test.
>
> Below is some info on the error although I'm you will want something 
> more. I'm  running Windows XP SP3 and I've installed the microsoft 
> message queue stuff to support pgm (although thats not what I'm 
> testing here)
>
> Thanks!
> Robin
>
>
> This is from the windows error message:
> AppName: java.exe     AppVer: 6.0.140.8     ModName: msvcr90.dll
> ModVer: 9.0.21022.8     Offset: 000731cf
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>   




More information about the zeromq-dev mailing list