The process is deadlocked

A deadlocked process does not use any CPU time.

You can monitor this condition by using the USS ps command against the Java™ process:
    UID        PID       PPID  C    STIME TTY       TIME CMD
CBAILEY        253        743  - 10:24:19 ttyp0003  2:34 java -classpath .Test2Frame
If the value of TIME increases in a few minutes, the process is still using CPU, and is not deadlocked.

For an explanation of deadlocks and how the Javadump tool is used to diagnose them, see LOCKS.