Re: [Cdk-user] InChi and Docker [solved]

2018-09-14 Thread John Mayfield
Knew it was the JAR packaging, I did try to send the JAR file I has working in debain-slim but Gmail blocks JAR attachments. Interestingly I stopped using SpringBoot (for another reason I can't remember) a few years ago and use the TomCat (exec-war) plugin instead. Jetty also has a plugin which is

Re: [Cdk-user] InChi and Docker [solved]

2018-09-13 Thread Egon Willighagen
Oh, very happy to hear that! Are you going to put it up on DockerHub? Egon On Thu, Sep 13, 2018 at 10:42 PM Maria Sorokina wrote: > I managed to make my app function. > > The problem comes from the way a Spring Boot application packages the jar > - internally, the jar is different from plain ol

Re: [Cdk-user] InChi and Docker [solved]

2018-09-13 Thread Maria Sorokina
I managed to make my app function. The problem comes from the way a Spring Boot application packages the jar - internally, the jar is different from plain old Java, so the deployment of artefacts is also different. The Jnati library that allows the wrapping of the InChi factory is not adapted t

Re: [Cdk-user] InChi and Docker

2018-09-11 Thread John Mayfield
Do you have a different machine to test on? Could also be a factor, alpine gave me a segfault (see attached) but slim works OK. [john@toaster jni-inchi-docker]$ more Dockerfile > FROM openjdk:8u171-slim > COPY smi2inchi.jar . John On Tue, 11 Sep 2018 at 16:23, John Mayfield wrote: > I'll have

Re: [Cdk-user] InChi and Docker

2018-09-11 Thread John Mayfield
I'll have a poke around in an alpine container this evening, does seem odd. A third option is nested-vm version, we used this in JChemPaint when it was an Applet - (see inchi-nestedvm in https://github.com/JChemPaint/jchempaint ). On Tue, 11 Sep 2018 at 16:03, Maria Sorokina wrote: > I am build

Re: [Cdk-user] InChi and Docker

2018-09-11 Thread Maria Sorokina
I am building my jar with Maven, but I don’t think that it is the problem, as I tried tu run the jar on a Centos7 VM having just Java and it worked without any problem. I also desperately tried the dirty solution of downloading the manifest and the jniinchi-1.03_1-LINUX-AMD64.so files the ini-in

Re: [Cdk-user] InChi and Docker

2018-09-11 Thread John Mayfield
Right, alpine was probably a red herring. Looking again I presume you build app.jar yourself? It looks like you've removed the MANIFEST.xml that is needed by JNI InChI to locate the native dependency. How are you building the JAR? Unfortunately v1.03 of InChI is all we have for JNI ATM. My former

Re: [Cdk-user] InChi and Docker

2018-09-11 Thread Maria Sorokina
I tried the ubuntu 16.04 based image with Java 8 added, I get exactly the same error, only at the InChi generation. I have the feeling that something is missing in this minimal linux images for the InChi generator to run correctly, but I cannot find what. I also noticed that for an old version

Re: [Cdk-user] InChi and Docker

2018-09-10 Thread John Mayfield
Unlikely to work in alpine, have you tried ubuntu/debian slim? John On Mon, 10 Sep 2018 at 18:16, Maria Sorokina wrote: > Hi, > > I developed an app using CDK, and in particular it’s InChi Generator. It > runs perfectly with IntelliJ, and as a jar on MacOS and on CentOS. I wanted > to make it r