[zeromq-dev] How to build the Java Binding...

Martin Sustrik sustrik at 250bpm.com
Wed Apr 7 14:04:15 CEST 2010


Jeff,

Java binding is a separate project.

To build it, zmq.h has to be on include path. You can set include paths 
using MSVC Options.

I'll add details to Java binding wiki page shortly.

Martin

Jeff Vienneau wrote:
> Hi,
> 
> I am trying to build the Java msvc project and am getting an error with 
> context.cpp not being able to see the zmq.h. What is the proper 
> placement of the java binding project within the zmq project?
> 
> I placed it in the root of my zmq install. However I am not sure how the 
> msvc solution should be able to find the zmq includes folder in order to 
> resolve: #include <zmq.h>.
> 
> Thanks..
> 
> Here  is my build log:
> 
> 1>------ Build started: Project: jzmq, Configuration: Debug Win32 ------
> 1>Compiling Java classes
> 1>        1 file(s) copied.
> 1>Generating JNI header
> 1>Generating JNI header
> 1>Generating JNI header
> 1>Compiling...
> 1>Context.cpp
> 1>c:\code\zmq\zeromq-2.0.6\java\src\context.cpp(23) : fatal error C1083: 
> Cannot open include file: 'zmq.h': No such file or directory
> 1>Poller.cpp
> 1>c:\code\zmq\zeromq-2.0.6\java\src\poller.cpp(23) : fatal error C1083: 
> Cannot open include file: 'zmq.h': No such file or directory
> 1>Socket.cpp
> 1>c:\code\zmq\zeromq-2.0.6\java\src\socket.cpp(24) : fatal error C1083: 
> Cannot open include file: 'zmq.h': No such file or directory
> 1>Generating Code...
> 1>Build log was saved at 
> "file://c:\code\zmq\zeromq-2.0.6\java\builds\msvc\jzmq\Debug\BuildLog.htm"
> 1>jzmq - 3 error(s), 0 warning(s)
> 2>------ Build started: Project: remote_lat, Configuration: Debug Win32 
> ------
> 3>------ Build started: Project: local_lat, Configuration: Debug Win32 
> ------
> 3>Compiling Java classes
> 2>Compiling Java classes
> 2>Build log was saved at 
> "file://c:\code\zmq\zeromq-2.0.6\java\builds\msvc\remote_lat\Debug\BuildLog.htm"
> 3>Build log was saved at 
> "file://c:\code\zmq\zeromq-2.0.6\java\builds\msvc\local_lat\Debug\BuildLog.htm"
> 2>remote_lat - 0 error(s), 0 warning(s)
> 3>local_lat - 0 error(s), 0 warning(s)
> 4>------ Build started: Project: local_thr, Configuration: Debug Win32 
> ------
> 5>------ Build started: Project: remote_thr, Configuration: Debug Win32 
> ------
> 5>Compiling Java classes
> 4>Compiling Java classes
> 5>Build log was saved at 
> "file://c:\code\zmq\zeromq-2.0.6\java\builds\msvc\remote_thr\Debug\BuildLog.htm"
> 4>Build log was saved at 
> "file://c:\code\zmq\zeromq-2.0.6\java\builds\msvc\local_thr\Debug\BuildLog.htm"
> 5>remote_thr - 0 error(s), 0 warning(s)
> 4>local_thr - 0 error(s), 0 warning(s)
> ========== Build: 4 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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