[zeromq-dev] jzmq: embedding native library in JAR
Karl Ostendorf
karl at ostendorf.com
Wed Jun 1 15:41:12 CEST 2011
Hi Gonzalo,
I updated my pull request - I had to cancel the original request
through and replace it with a request from a new branch.
Maven will include the library in the JAR file if it exists in its
build directory (src/.libs). If it doesn't exist, Maven will not
include it and not even complain ;-) It the native library is included
in the JAR file, it will be used, otherwise the java.library.path will
be used.
Regards.
Karl Ostendorf
http://ostendorf.com
On Mon, May 30, 2011 at 22:27, gonzalo diethelm <gdiethelm at dcv.cl> wrote:
>> > 1. By default, not including any native libraries in the JAR.
>>
>> Yes.
>
> OK.
>
>> > 2. Allow for having multiple native libraries in the JAR, maybe
>> structured by platform, compiler, version: win32/vcc/2.1/0mq.dll,
>> win32/mingw/3.0/0mq.dll, linux/gcc/3.0/0mq.so, etc.
>> >
>>
>> No, only by architecture / operating system. Not by compiler. At
>> runtime, only architecture and os are available to determine where to
>> look for the library within the JAR.
>
> I was just going overboard there... Architecture / OS should be enough. Unless version is also deemed useful / necessary / usable?
>
>> > 3. Allow for including one or more native libraries in the JAR, if the
>> user specifies it at build time.
>>
>> Yes, by default the JAR will be created without any native libraries.
>> Then we can provide instructions on how to manually add the JNI binary
>> to the JAR as an extra step.
>
> OK.
>
>> I will modify my pull request accordingly.
>
> Great. Once that is ready, I will pull.
>
> --
> Gonzalo Diethelm
>
> _______________________________________________
> 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