Take the 2-minute tour ×

I mean the intel assembly for the processor?

share|improve this question
As you can see in the answers, it finally seems that the title was not enough. What exactly do you want to see? Did you mean Java bytecode? –  LudoMC Jan 16 '11 at 14:52
Intel assembly clearly means machine code, not byte code. –  Christopher Barber Sep 3 '13 at 19:55
add comment

6 Answers

If you want to see the native code generated (at runtime) by the JIT compiler, then there are a series of JVM flags that will print the assembly code as it is generated.

They are included in this listing - search for "PrintAssembly".

Note that these options need to be prefixed with "-XX:" in the java command line. Refer to the java manual page for details.

share|improve this answer
add comment

You won't get anything like that. Java is compiled to ByteCode.

share|improve this answer
My guess is this is what is required ;) –  Arjan Tijms Jan 16 '11 at 14:49
add comment

If with "assembly translation" you mean the byte code (the output from Javac, JDT, etc) then the answer is really simple: find a .class file and double click on it.

This will show you the byte code in human readable mnemonics.

share|improve this answer
simply brilliant, thanks! –  Hovercraft Full Of Eels Jan 16 '11 at 14:56
add comment

Java-code is translated to bytecode. Then the JVM takes the bytecode and executes it. So I think you are out of luck.

If you want the bytecode - see javap. It ships with the JDK and disassembles a class file. As @arjan noted, Eclipse shows such information when you double-click a class.

share|improve this answer
Perhaps he meant to say, "how to see the compiled byte code"? But only the OP knows for sure. We await his response. :) –  Hovercraft Full Of Eels Jan 16 '11 at 14:49
bytecode is 'usually' decompilable to java easily and reading byte code aint any harder –  bestsss Jan 16 '11 at 14:50
ah, there was a tool for getting the byte-code of a class. let me find it. –  Bozho Jan 16 '11 at 14:51
Why using separate tools? The OP mentioned he's using Eclipse, and Eclipse shows the byte code by default simply by double clicking on a class file. –  Arjan Tijms Jan 16 '11 at 14:54
@arjan - correct. Mine doesn't, because I use a decompiler always :) but yes –  Bozho Jan 16 '11 at 14:55
show 1 more comment


but I guess that's extra easy to be found oneself.

share|improve this answer
Not sure what that is supposed to be. That link is dead. –  Christopher Barber Sep 3 '13 at 19:54
add comment

Enter the output folder - usually "bin" - in the Navigation perspective. There you can see all your class files.

share|improve this answer
add comment

Your Answer


