title: SBT scala project error : value is not a member of object
body: <p>I am scala beginner.</p>
  
  <p>I have created a scala sbt project.</p>
  
  <p>I have a scala program <strong>Apple.scala</strong> under package <code>com.development.bigdata.executor</code></p>
  
  <p>I have a another java project created using maven. It has a class as <strong>FruitInfo</strong> in package <code>com.development.bigdata.provider</code>,
  under that I wrote a simple method </p>
  
  <pre><code>public String getInfo(String fruit) 
  {
     return fruit;
  }
  </code></pre>
  
  <p>I want to call java's <code>getInfo()</code> method from <strong>Apple.scala</strong></p>
  
  <p>I compiled FruitInfo java class and added jar dependency in scala project</p>
  
  <p>But when I actually call the method from Apple.scala - </p>
  
  <pre><code>val info : FruitInfo = new FruitInfo()
      info.getInfo("apple")
  </code></pre>
  
  <p>When I do <code>sbt clean package</code>, it throws an error saying,</p>
  
  <blockquote>
    <p>value getInfo is not a member of object
    com.development.bigdata.privider.FruitInfo</p>
  </blockquote>
  
  <p>My build.sbt is like -</p>
  
  <pre><code>libraryDependencies ++= Seq(
    "org.apache.spark" %% "spark-core" % "1.6.0" % "provided",
    "org.apache.spark" %% "spark-sql" % "1.6.0" % "provided",
    "org.apache.spark" %% "spark-hive" % "1.6.0" % "provided",
    "org.json4s" %% "json4s-jackson" % "3.2.10",
    "org.scalaj" %% "scalaj-http" % "2.3.0",
    "com.databricks" %% "spark-csv" % "1.5.0",
    "com.typesafe" % "config" % "1.3.1",
    "net.liftweb" %% "lift-json" % "2.5.1",
    "com.development.bigdata.provider" % "metadata-manager" % "1.0-SNAPSHOT"
  )
  
  resolvers += Resolver.mavenLocal
  </code></pre>
  
  <p>Any idea whats happening? Please let me know. Suggestions are really appreciated.</p>
  
  <p>Thanks in advance.</p>