Run Program from IntelliJ with Command Line File Input

后端 未结 6 420
青春惊慌失措
青春惊慌失措 2020-12-19 07:34

I am running OSX 10.11 with IntelliJ 14.1.15.

I have a programme which takes a txt file as an argument. I can run it from the terminal through java Searc

6条回答
  •  暖寄归人
    2020-12-19 08:18

    Go to Run -> Edit Configurations, Select Application, then give the main class name and program arguments. Then Run.

提交回复
热议问题