This installs the current Ubuntu-supported version (e.g., OpenJDK 11, 17, or 21). sudo apt install default-jdk Use code with caution. Copied to clipboard
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
Save and exit ( Ctrl+O , Enter , Ctrl+X ), then apply the changes: source ~/.bashrc Use code with caution. How to Use jstack on Ubuntu
2345: Unable to open socket file: target process not responding or HotSpot VM not loaded
You only have the JRE installed, or your environment variables are misconfigured.
sudo find /usr -name jstack
No account yet?
Create an Account