Run Program from IntelliJ with Command Line File Input

后端 未结 6 413
青春惊慌失措
青春惊慌失措 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:27

    Steps to follow-
    1. Run->Edit Configurations.


    2. Select Application.



    3. Provide main class name and command line arguments and apply.

    4. Run

提交回复
热议问题