Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #9869

Re: Advice regarding Java packages for SimpleITK

From Ghislain Vaillant <ghisvail@gmail.com>
Newsgroups linux.debian.maint.java
Subject Re: Advice regarding Java packages for SimpleITK
Date 2017-08-10 11:20 +0200
Message-ID <ucRNf-3Bi-13@gated-at.bofh.it> (permalink)
References <ub2ts-2k5-1@gated-at.bofh.it> <ucl10-6pZ-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 08/08/17 21:56, Emmanuel Bourg wrote:
> On 08/05/2017 10:16 AM, Ghislain Vaillant wrote:
> 
>> I was wondering which files should be installed (and to which location)
>> to produce corresponding Java packages which are policy compliant.
> 
> Hi Ghislain,
> 
> As I understand you'll need two binary packages for the Java bindings:
> 
> * libsimpleitk-java (arch: all), with simpleitk-1.0.1.jar installed in
> /usr/share/java and a versionless symlink in the same directory (I
> suggest using a javahelper debian/*.jlibs file to handle this operation).

Ack, I'll look into javahelper. I have only dealt with maven-based 
packaging so far.

> * libsimpleitk-jni (arch: any), with libSimpleITKJava.so in a multiarch
> path (for example /usr/lib/x86_64-linux-gnu/jni/)

Ack.

> You'll have to ensure the .so file isn't included in the jar, this may
> require some tweaking of the library loading code.

I am not sure what you mean here, though that might be because of my 
personal ignorance of how JNI works. Could you be a bit more explicit 
please?

I have also looked at similar packages using swig to generate Java 
bindings. src:vtk6 [1] does provide separate java and jni packages as 
you are proposing, but src:gdcm [2] does not. I have got to say, I am a 
bit confused.

[1] https://packages.debian.org/source/sid/vtk6
[2] https://packages.debian.org/source/sid/gdcm

Cheers,
Ghis

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Advice regarding Java packages for SimpleITK Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-05 10:20 +0200
  Re: Advice regarding Java packages for SimpleITK Emmanuel Bourg <ebourg@apache.org> - 2017-08-09 00:20 +0200
    Re: Advice regarding Java packages for SimpleITK Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-10 11:20 +0200
      Re: Advice regarding Java packages for SimpleITK tony mancill <tmancill@debian.org> - 2017-08-10 15:10 +0200
        Re: Advice regarding Java packages for SimpleITK Emmanuel Bourg <ebourg@apache.org> - 2017-08-10 22:30 +0200
        Re: Advice regarding Java packages for SimpleITK Matthias Klose <doko@debian.org> - 2017-08-11 00:20 +0200
          Re: Advice regarding Java packages for SimpleITK tony mancill <tmancill@debian.org> - 2017-08-11 00:50 +0200
      Re: Advice regarding Java packages for SimpleITK Emmanuel Bourg <ebourg@apache.org> - 2017-08-10 22:40 +0200

csiph-web