Compilation error in scala

I am new to scala. I recently started using netbeans to write scala programs. I 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 this so?

+4
source share
1 answer

Edited '-make: transitive' from scalac addparams option (view files> ScalaApplication> nbproject> build-impl.xml).

+8
source

Source: https://habr.com/ru/post/1542076/


All Articles