The standard way to do this with the JDK tools is to use the javap command from the command line. Basically you run:
javap -p MyProgram.class
....and the output goes to standard out device, which you can redirect with >file, >>file or |command. The -p option includes disassembly of private methods.
More information at:
http://docs.oracle.com/javase/7/docs/tec...
I'm using eclipse. Some people say to use the JVM to view it, but I don't know the step-by-step process of how to do it.