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
Go to Run -> Edit Configurations, Select Application, then give the main class name and program arguments. Then Run.
Run
Edit Configurations
Application
main class
program arguments