Home » Java » java – I dont' know how to install libXtst.so.6 library required for my application deployed on heroku-Exceptionshub

java – I dont' know how to install libXtst.so.6 library required for my application deployed on heroku-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

I have made a spring-boot app printing some created files in Microsoft Word. Locally it works fine. However when i try to print them via an app deployed on heroku such a problem occurs:

There was an unexpected error (type=Internal Server Error,
status=500). /app/.jdk/jre/lib/amd64/libawt_xawt.so: libXtst.so.6:
cannot open shared object file: No such file or directory

From what i looked up in google i believe i should install somewhere libxrender1:i386 libxtst6:i386 libxi6:i386. I just don’t know where to find it and where exactly should i put it. I would be really happy if someone could help me sort this out.

How to&Answers:

From what i looked up in google i believe i should install somewhere libxrender1:i386 libxtst6:i386 libxi6:i386.

That is incorrect: the reference to the libXtst.so.6 comes from .../jre/lib/amd64/libawt_xawt.so, so you need a 64-bit version of libXtst.so.6, not a 32-bit one.

I just don’t know where to find it and where exactly should i put it.

The answer is: use package manager that comes with your system (you didn’t tell us what OS you are running).

This could be sudo apt install libxtst6 (Ubuntu / Debian), or sudo yum install libXtst (CentOS or RedHat or Fedora), or something else.