Javap -p <classname> doesn't work on the labs


#1

While following the lecture 7 in Section 2, I see that the disassembler javap doesn’t work. I exited scala and tried to set the path for java home to /usr/lib/jvm/java-1.7.0-openjdk but even then get the following error:

scala> javap -p Order
:12: error: not found: value javap
javap -p Order
^
:12: error: not found: value p
javap -p Order
^
Because of this I can’t understand the behavior of the changes I am making to the class. Please advise.


#2

@sourabhpawar

Use the below command to disassemble a .class file to look at its signature.

:javap -p Order