ScalaMainClass

(Difference between revisions)
(Created page with '__NOTOC__ ==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…')
m (also needs to accept cmdl arguments)
 
Line 5: Line 5:
# Set project's Main class in project's properties dialog,input the full qualified name of this class, for example: '''scalaproject1.RunMe'''
# Set project's Main class in project's properties dialog,input the full qualified name of this class, for example: '''scalaproject1.RunMe'''
-
# Make sure the main method return '''UNIT''' type
+
# Make sure the main method's return type is '''Unit''' and that it takes one argument of the type '''Array[String]'''.

Current revision as of 22:10, 26 November 2009

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