Command Line Arguments


Code Warrior:

Edit -> Java Application Settings -> Target -> Java Target

Input the arguments in the Parameters box.

 

Microsoft  J++:

  1. Open workspace.
  2. Locate the class that contains main and open it.
  3. Go to Project->"<LifePlayer> Properties" (where <LifePlayer> is your main class)
  4. In the Launch tab, click on the radio button labelled "Custom"
  5. Under this you will see settings for Programs (don't touch this) and
    Arguments: /p /cp:p "<JAVAPACKAGES>" LifePlayer
  6. Append the command-line arguments to the end of this, e.g.
    Arguments: /p /cp:p "<JAVAPACKAGES>" LifePlayer 5x5 C initLife.data