0

Possible Duplicate:
how to add command line parameters when running java code in Eclipse?

When i run my program on tux and do a make run my program executes perfectly, the command in the make file is :

STS_ARGS = attributes.txt ts

run:
    java -ea -cp $(STS_CP) STS $(STS_ARGS)

and now when i try to run the file in eclipse

Input in = new Input("Attributes.txt ");

how do i pass "ts" as an argument in eclipse ?

Community
  • 1
  • 1
Pradit
  • 709
  • 5
  • 12
  • 27

1 Answers1

1

Run Configurations -> Arguments - Program Arguments

Then enter the arguments to your program there.

Rob Kielty
  • 7,958
  • 8
  • 39
  • 51