"bash: jstack: command not found" error on Amazon Linux AMI

5.6k Views Asked by At

On ec2 instance(Amazon Linux AMI) jstack is giving following error

bash: jstack: command not found

Java is installed on the machine

java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

Is there any reason to get error for jstack when java is already installed?

1

There are 1 best solutions below

0
Shivendra Kadam On BEST ANSWER

JDK is required for jstack. The instance only has JRE.