Here's content about installing and using jstack on Ubuntu:
If your app requires a specific version, you can target it directly. install jstack on ubuntu
After installation, verify that jstack is now accessible: Here's content about installing and using jstack on
jstack <executable> <core_file>
sudo jstack <pid>.sudo nano /etc/environment