ScalaMainClass

How to Set Main Class and Run

Scala Plugin does not support run/debug single Scala file yet, but, you can change and set project's Main class to run/debug it:

  1. Set project's Main class in project's properties dialog,input the full qualified name of this class, for example: scalaproject1.RunMe
  2. Make sure the main method's return type is Unit and that it takes one argument of the type Array[String].
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo