Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compilation error in scala

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?

like image 230
knbdtu Avatar asked Feb 13 '23 21:02

knbdtu


1 Answers

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

like image 78
Phll2 Avatar answered Feb 24 '23 16:02

Phll2