4

I'm a newbie in scala. I recently started using netbeans for writing scala programs.I have installed scala version 2.11.0.400 and its plugins for netbeans.When I try to compile my scala code:-

package scalaapplication2

object Main {

  def main(args: Array[String]): Unit=
  {
    println("Hello, world!")
  }

}

I get the following compilation error even after setting the path variables:-

  Compiling 1 source file to C:\Users\Nitin\Documents\NetBeansProject\ScalaApplication2\build\classes

  C:\Users\Nitin\Documents\NetBeansProjects\ScalaApplication2\nbproject\build-   impl.xml:423:

  The following error occurred while executing this line:

  C:\Users\Nitin\Documents\NetBeansProjects\ScalaApplication2\nbproject\build-impl.xml:238: bad option: '-make:transitive'

Why is it so?

0

1 Answer 1

8

Removing '-make:transitive' from the scalac addparams option (Files view > ScalaApplication > nbproject > build-impl.xml) worked for me.

Sign up to request clarification or add additional context in comments.

3 Comments

And for those using Maven, it's often included in the configuration of the scala-maven-plugin (e.g. when using archetypes). Remove that arg from your POM and things should be fine.
BTW, I've raised this issue with the author of the scala-archetype-simple archetype: -make:transitive not playing nice with Scala 2.11 #8
I'm using maven but i am not using the plugin, still the error pops up.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.