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?
JDK is required for jstack. The instance only has JRE.