Invoking javap
to read the bytecode
The javap
command takes class-names without the .class
extension. Try
javap -c ClassName
Converting .class files back to .java files
javap
will however not give you the implementations of the methods in java-syntax. It will at most give it to you in JVM bytecode format.
To actually decompile (i.e., do the reverse of javac
) you will have to use proper decompiler. See for instance the following related question:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…