Java 1.6 onwards, “jstack.exe”, a utility tool comes along with the JDK installation and can be found in the folder %JAVA_HOME%\bin. If you aren’t able to find it along with your JDK installation, even then you should be able to download this utilit
Read this post on aneetin.com