Problem dockerizing existing java app

I’m trying to dockerize an existing java app that I don’t have the source code for (first issue in trying to troubleshoot).
I’m getting a SEVERE: Caused by: java.lang.UnsatisfiedLinkError: /home/developer/frontline/java-lin64/lib/amd64/ cannot open shared object file: No such file or directory

Well The files does exist in the container (used entrypoint option to get a shell in container to troubleshoot)

I added the path to the to both LD_LIBRARY_PATH (running on linux/centos) and added to java command -Djava.library.path=“path to so”

So I’m stumped now as to the issue. Any thoughts?

do you need graphics? If not -Dawt.headless=true

yes I do need the graphics. I got past this issue as installed in the dockerfile
RUN yum -y install libX11-devel.x86_64
RUN yum -y install libXext.x86_64
RUN yum -y install libXrender.x86_64
RUN yum -y install libXtst.x86_64

but now have another error with libGL errror: unable to load

Just FYI got it to work. Was just a painful process of tracking each issue down. This linke helped a lot:

1 Like