How do I view the contents of a .class file (java byte code)?
How do I open these type of files in Linux? I'm using Centos 5.8.
How do I view the contents of a .class file (java byte code)?
How do I open these type of files in Linux? I'm using Centos 5.8.
javap -c X
will show the disassembly of X.class
.
javap -v com.company.package.MainClass
To understand bytecode You can use this list of mnemonics
You could decompile it.
To see Java source code check some decompiler. Go search for jad
.
If you want to see bytecodes, just use javap
which comes with the JDK.
less filename.class
Not sure how it will help you, unless you can read byte code...