Docker Community Forums

Share and learn in the Docker community.

Problem dockerizing existing java app


(Frank) #1

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/libsplashscreen.so: libX11.so.6: cannot open shared object file: No such file or directory

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

I added the path to the libX11.so.6 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?


(Archimedes Trajano) #2

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


(Frank) #3

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 swrasy_dri.so


(Frank) #4

Just FYI got it to work. Was just a painful process of tracking each issue down. This linke helped a lot: https://linoxide.com/linux-how-to/run-gui-apps-docker-container/#comment-3260