Madhu,

Thank you! I now switched to eclipse and imported the assembly jar, the IDE
successfully finds the imports. But when I try to run my code I get
"java.lang.NoClassDefFoundError:
org/apache/spark/api/java/function/PairFunction" is there anything special
to consider when I want to run my development code directly from eclipse (I
checked the buildpath settings and made sure to completely export the
assembly jar)?

Best Regards
On May 11, 2014 4:48 PM, "Madhu" <ma...@madhu.com> wrote:

> Alessandro,
>
> I'm using Eclipse, IntelliJ settings will be similar.
> I created a standard project, without maven.
>
> For me, the easiest way was to add this jar to my Eclipse project build
> path:
>
> <my spark
> dir>/assembly/target/scala-2.10/spark-assembly-x.x.x-hadoop1.0.4.jar
>
> It works for either Java or Scala plugin.
> That Jar is quite large (~100MB) and has everything in it.
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/java-lang-NoSuchMethodError-on-Java-API-tp5545p5552.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>

Reply via email to