ZeroMQ Java Installation Problem

Tagged:
Freelance Jobs

I'm trying to install ZeroMQ's Java library but I've been having problem. First error was ./configure complained about JAVA_HOME which everything seemed to be fine but I couldn't manage to solve it but I've found a particular solution in ZeroMQ's chat logs.

The suggested solution was;

JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home" ./configure

However it doesn't work for me. The error message I've been receiving is

checking for jni.h in /Library/Java/Home/include... configure: error: cannot find jni.h in /Library/Java/Home/include.

I've tried JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home" ./configure and JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home" ./configure as well but still no luck. I'd like to hear StackOverflowers' thoughts about how I can solve this.

Thanks.


IvanH
2010-12-18 13:00:44 Scores:0

2 answers

Answer 1
Scores:3

What I did for the missing jni.h on Mac OSX Snow Leopard:

cd /Library/Java/Home

sudo ln -s /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Headers/ ./include

mturatti H
2011-02-13 14:13:36
Answer 2
Scores:0

I wrote up my experiences with this. Basically, its the weird way apple puts java in mac os x. http://blog.pmorelli.com/getting-zeromq-and-jzmq-running-on-mac-os-x

pmorelli H
2010-12-26 10:47:42
Share |
View original post at stackoverflow.com

Related topics

OS X gcc "installation problem"

OS X 10.5.6, Xcode 3.1 with iPhone support. After compiling some apps for iPhone device in Xcode, I've noticed that calling GCC from command line no longer works: $ gcc gcc-4.0: installation problem, cannot exec '/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//i686-apple-darwin9-gcc-4.0.1': No such file or directory Note how gcc attempts to launch i686 executable in iPhoneOS (arm) platform directory. How ...

pyqt installation problem in mac osx snow leopard

I'm following a tutorial of making desktop apps. with python and qt4, I downloaded and installed qt creator ide, created the .ui file and then I had to convert it using pyuic4, I've been trying a lot of things and still can't do it. I thought that pyuic4 would be installed ...

problems with java installation (xerces) on mac

I'm using MacOsX 10.6.4. Some time ago I run into problems with Eclipse (it wouldn't start anymore - I opened a question here and followed all the suggestion but with no luck). Then I also run into very similar problems with other java applications, of which the last one is the ...

Pure java ZeroMQ clients?

I am trying to use ZeroMQ's pub sub messaging, but the client side requires the code to be all Java. I understand that ZeroMQ has a Java binding but that still relies on a c library, therefore I am unable to use it. Is there a ZeroMQ client I can ...

Eclipse start problem after plugin installation

I use Eclipse 3.4.2 and just installed Android SDK plugin for eclipse. But After installation when I start the eclipse, I get error message Here is what the log says !SESSION 2011-03-07 11:13:53.163 ----------------------------------------------- eclipse.buildId=M20090211-1700 java.version=1.6.0_23 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws ...

node.js performance with zeromq vs. Python vs. Java

I've written a simple echo request/reply test for zeromq using node.js, Python, and Java. The code runs a loop of 100K requests. The platform is a 5yo MacBook Pro with 2 cores and 3G of RAM running Snow Leopard. node.js is consistently an order of magnitude slower than the other two ...

Messaging latency in java (with zeromq)

I just ran the zeroMQ hello world example and timed the request-response latency. It averaged about 0.1ms running using the IPC protocol. This sounds quite slow to me....Does this sound about right? long start=System.nanoTime(); socket.send(request, 0); ...

zeromq - bytearray (from .net server) to string in java

I'm working on a project that uses both .net and java, using zeromq to communicate between them. I can connect to the .net server, however when I try to convert the byte array to a string strange things happen. In the eclipse debugger I can see the string, and its length. ...

What are the alternatives to ZeroMQ for moving protocol buffer payloads around?

At the moment I have a solution that uses ZeroMQ to exchange protocol buffer payloads. The protocol buffer method of serialization is bound to stay as it is, but I can replace ZMQ with a more convenient option. The things I am not happy about in ZMQ are: It uses JNI ...

ZeroMQ: how to achieve C-like multithreading

In C we have Sockets and descriptors, it is possible to just take one of these and hand them over to a Thread, this makes it possible that you can accept incoming connections and give the work to a Thread you like and the Thread can send by itself the ...