I have a running java process in a standard windows command window. ie i have run \'cmd\' and typed in java -jar ...
I need to be able to get a full stack dump of al
In the Java 6 JDK+ the jvisualvm executable allows you to attach to a running program (double click on its entry in the left side).
When attached, there is a Threads pane on the right side, which has a Thread Dump button.
This gives you a thread dump.
Once generated you can A) Select all - Copy and paste the thread dump to a text editor. or B) you can Right click on the thread dump created in the tree on the left hand side and say "Save as".
Notes jvisualvm also allows you to take snapshots of the whole application for later analyzis.