title: scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found
body: <p>I'am trying to build  spark streaming application using sbt package,I can't discover what's the reason of this error.</p>
  
  <p>this is  some thing of the error </p>
  
  <blockquote>
    <p>scala.reflect.internal.MissingRequirementError: object
    java.lang.Object in compiler mirror not found.    at
    scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:16)
      at
    scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:17)
      at
    scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:48)
      at
    scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:40)
      at
    scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:40)</p>
  </blockquote>
  
  <p>and here is the code</p>
  
  <pre><code>import org.apache.spark.SparkContext
  import org.apache.spark._
  import org.apache.spark.streaming._
  import org.apache.spark.streaming.twitter._
  import twitter4j.Status
  object TrendingHashTags {
  def main(args: Array[String]): Unit = {
  val Array(consumerKey, consumerSecret, accessToken, accessTokenSecret,
  lang, batchInterval, minThreshold, showCount ) = args.take(8)
  val filters = args.takeRight(args.length - 8)
  System.setProperty("twitter4j.oauth.consumerKey", consumerKey)
  System.setProperty("twitter4j.oauth.consumerSecret", consumerSecret)
  System.setProperty("twitter4j.oauth.accessToken", accessToken)
  System.setProperty("twitter4j.oauth.accessTokenSecret", accessTokenSecret)
  val conf = new SparkConf().setAppName("TrendingHashTags")
  val ssc = new StreamingContext(conf, Seconds(batchInterval.toInt))
  val tweets = TwitterUtils.createStream(ssc, None, filters)
  val tweetsFilteredByLang = tweets.filter{tweet =&gt; tweet.getLang() == lang}
  val statuses = tweetsFilteredByLang.map{ tweet =&gt; tweet.getText()}
  val words = statuses.flatMap{status =&gt; status.split("""\s+""")}
  val hashTags = words.filter{word =&gt; word.startsWith("#")}
  val hashTagPairs = hashTags.map{hashtag =&gt; (hashtag, 1)}
  val tagsWithCounts = hashTagPairs.updateStateByKey(
  (counts: Seq[Int], prevCount: Option[Int]) =&gt;
  prevCount.map{c =&gt; c + counts.sum}.orElse{Some(counts.sum)}
  )
  val topHashTags = tagsWithCounts.filter{ case(t, c) =&gt;
  c &gt; minThreshold.toInt
  }
  val sortedTopHashTags = topHashTags.transform{ rdd =&gt;
  rdd.sortBy({case(w, c) =&gt; c}, false)
  }
  sortedTopHashTags.print(showCount.toInt)
  ssc.start()
  ssc.awaitTermination()
  }
  }
  </code></pre>