(run-main-0) java.lang.NoSuchMethodError

(run-main-0) java.lang.NoSuchMethodError

Asked on January 7, 2019 in Apache-spark.
Add Comment


  • 3 Answer(s)

    Here the same error is seen when using scala-library-2.11 jar, So it is replaced with scala-library-2.10 jar. and this works fine.

     

    Answered on January 7, 2019.
    Add Comment

    The issue is caused by using incompatible versions of Scala. When the version scala is downgraded from  2.11 to 2.10 and here one package is forgotten to modify version (so one package used 2.11, the rest 2.10), and this leads having the same error.

    Make a note that, this issue is seen when using IntelliJ.

    Answered on January 7, 2019.
    Add Comment

    Here this works fine when these versions are used.

    <dependency>
        <groupId>org.scala-lang</groupId>
        <artifactId>scala-library</artifactId>
        <version>2.11.6</version>
    </dependency>
     
    <dependency>
        <groupId>com.typesafe.akka</groupId>
        <artifactId>akka-actor_2.11</artifactId>
        <version>2.3.11</version>
    </dependency>
    
    Answered on January 7, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.