spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shixiong Zhu <zsxw...@gmail.com>
Subject Re: spark-shell :javap fails with complaint about JAVA_HOME, but it is set correctly
Date Thu, 15 Oct 2015 07:46:07 GMT
Scala 2.10 REPL javap doesn't support Java7 or Java8. It was fixed in Scala
2.11. See https://issues.scala-lang.org/browse/SI-4936

Best Regards,
Shixiong Zhu

2015-10-15 4:19 GMT+08:00 Robert Dodier <robert.dodier@gmail.com>:

> Hi,
>
> I am working with Spark 1.5.1 (official release), with Oracle Java8,
> on Ubuntu 14.04. echo $JAVA_HOME says "/usr/lib/jvm/java-8-oracle".
>
> I'd like to use :javap in spark-shell, but I get an error message:
>
> scala> :javap java.lang.Object
> Failed: Could not load javap tool. Check that JAVA_HOME is correct.
>
> However ls $JAVA_HOME/lib/tools.jar shows that it is there.
>
> I tried starting spark-shell with -toolcp $JAVA_HOME/lib/tools.jar but
> I get the same error.
>
> For comparison, if execute scala and enter :javap java.lang.Object, it
> works as expected.
>
> Not sure where to go from here. Thanks for any advice.
>
> best,
>
> Robert Dodier
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>

Mime
View raw message