Scala console Javap -p not working

Scala console Javap -p not working
5.0 2

#1

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


#2

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


#3

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.


#4

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.


#5

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


#6

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


#7

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

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