Scala console Javap -p not working


Getting below error while tring javap -p class name
scala> :javap -p dept
Failed: No javap tool available:$JavapTool6 failed to initialize.


Please refer to the following discussion also. See if you can try that solution.


Are you doing it on lab? If so, it will not work on lab, you will need to setup Scala on your local machine and install 2.11.* to use this. Pls ref to post on itversity website how to setup Scala in local machine.


I am also facing the same Issue#

C:\Program Files (x86)\scala\bin>javac -version
’javac’ is not recognized as an internal or external command,
operable program or batch file.


Wait… javap command will not work in lab ? Why so ?


Can you please explain why it will not work in lab?


It is working fine in labs, Please refer the screenshot.

Just paste the screenshot of the issue that you are getting.