Return-Path: X-Original-To: apmail-spark-user-archive@minotaur.apache.org Delivered-To: apmail-spark-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5772D18D20 for ; Thu, 15 Oct 2015 07:46:23 +0000 (UTC) Received: (qmail 41243 invoked by uid 500); 15 Oct 2015 07:46:19 -0000 Delivered-To: apmail-spark-user-archive@spark.apache.org Received: (qmail 41140 invoked by uid 500); 15 Oct 2015 07:46:19 -0000 Mailing-List: contact user-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@spark.apache.org Received: (qmail 41130 invoked by uid 99); 15 Oct 2015 07:46:19 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2015 07:46:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 16CB0180A2C for ; Thu, 15 Oct 2015 07:46:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.899 X-Spam-Level: ** X-Spam-Status: No, score=2.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id SXGK4Q-bDf4T for ; Thu, 15 Oct 2015 07:46:13 +0000 (UTC) Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 6155842B30 for ; Thu, 15 Oct 2015 07:46:13 +0000 (UTC) Received: by iodv82 with SMTP id v82so81229844iod.0 for ; Thu, 15 Oct 2015 00:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Qp1V9us4GueVQr1dsqvcBweKA2luN6K4KypltpReZDM=; b=AyP8CSLS5hIB+pagsztJssfF5ii48KTjJNeZJYlVo4xJTxG4yttUZN8L8lnNJECSaU gedKU6F7cgNvZ7sLwnN7p538F32CGBtT0osWh1OeSr/kz1XCzagE6H115ZFFzFnB4lRB mGQSnpXFfQvR1j8maBlRT3kzOBLF8qxCQXBbE4NJcRwAyOWDGXPhoARv2rFbWaCjW458 OblbYliTzxP2XAPF5XbeRiDVvPSzzTzTrilPzLDOOsjUmBSDMQ2wuALyO1K/NpotAlb/ kH4eE8krOiuMP7K951NPfMTlrbTRaUWTIYqDcZJgCf3L2Qa4xkRPWDvxxdjS1NM6jRSX 3O7g== MIME-Version: 1.0 X-Received: by 10.107.165.140 with SMTP id o134mr5142002ioe.29.1444895167405; Thu, 15 Oct 2015 00:46:07 -0700 (PDT) Received: by 10.36.15.8 with HTTP; Thu, 15 Oct 2015 00:46:07 -0700 (PDT) In-Reply-To: References: Date: Thu, 15 Oct 2015 15:46:07 +0800 Message-ID: Subject: Re: spark-shell :javap fails with complaint about JAVA_HOME, but it is set correctly From: Shixiong Zhu To: Robert Dodier Cc: "user@spark.apache.org" Content-Type: multipart/alternative; boundary=001a1141fb9030e57505221fdfe8 --001a1141fb9030e57505221fdfe8 Content-Type: text/plain; charset=UTF-8 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 : > 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 > > --001a1141fb9030e57505221fdfe8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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

<= div dir=3D"ltr">

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


--001a1141fb9030e57505221fdfe8--