I am not able to see metadata of class and companion object after using :javap command in Scala Repl


#1

Hi,
I am not able to see metadata of class and companion object in lab.itversity .
Please suggest.


#2

You have to set JAVA_HOME pointing to JDK not JRE

export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111-2.6.7.2.el7_2.x86_64
This location should have directories such as bin, lib etc


#3

hi,

I have pointed to JDK only which has bin .

Please find the screen shot.

Please suggest.


#4

I think you need to point to JDK 1.7. I am not sure completely though.


#5

set to 1.7 . its working now .thanks

image


#6

I am not able to run javap after setting
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.161-2.6.12.0.el7_4.x86_64/

in spark-shell I am getting same issue

Let me know what may be issue on lob