title: Java spark example runs wrong with error: java.lang.NoSuchMethodError: scala.Predef$.$scope()Lscala/xml/TopScope$
body: <p>I wrote a example with <code>spark maven</code> support in <code>Intelligent IDEA</code>.
  The <code>spark</code> version is 2.0.0, <code>hadoop</code> version is 2.7.3, <code>scala</code> version is 2.11.8. Enviroment in system and IDE is the same version. Then application runs with error:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.NoSuchMethodError:
    <code>scala.Predef$.$scope()Lscala/xml/TopScope$</code>;     at
    <code>org.apache.spark.ui.jobs.StagePage</code>.(StagePage.scala:44)   at
    <code>org.apache.spark.ui.jobs.StagesTab</code>.(StagesTab.scala:34)   at
    <code>org.apache.spark.ui.SparkUI</code>.(SparkUI.scala:62)    at
    <code>org.apache.spark.ui.SparkUI$.create(SparkUI.scala:215)</code>  at
    <code>org.apache.spark.ui.SparkUI$.createLiveUI(SparkUI.scala:157)</code>    at
    <code>org.apache.spark.SparkContext.&lt;init&gt;(SparkContext.scala:443)</code>    at
    <code>org.apache.spark.SparkContext.&lt;init&gt;(SparkContext.scala:149)</code>    at
    <code>org.apache.spark.SparkContext.&lt;init&gt;(SparkContext.scala:185)</code>    at
    <code>org.apache.spark.api.java.JavaSparkContext.&lt;init&gt;(JavaSparkContext.scala:92)</code>
      at <code>com.spark.test.WordCountTest.main(WordCountTest.java:25)</code>   at
    <code>sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</code>     at
    <code>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</code>
      at
    <code>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</code>
      at <code>java.lang.reflect.Method.invoke(Method.java:606)</code>   at
    <code>com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)</code></p>
  </blockquote>