<p>Is it possible to get a thread dump of a Java Web Start application? And if so, how?</p>

<p>It would be nice if there were a simple solution, which would enable a non-developer (customer) to create a thread dump. Alternatively, is it possible to create a thread dump programmatically?</p>

<p>In the Java Web Start Console I can get a list of threads by pressing 't' but stacktraces are not included.</p>

<p>If answers require certain java versions, please say so.</p>

Try
```
```
StackTraceElement[] stack = Thread.currentThread().getStackTrace();
```
```
Then you can iterate over the collection to show the top x stack elements you're interested in.