Passing arguments stored in a file when running projects in Netbeans

Posted by oderebek on Stack Overflow See other posts from Stack Overflow or by oderebek
Published on 2012-09-07T15:36:50Z Indexed on 2012/09/07 15:37 UTC
Read the original article Hit count: 216

My problem is that I can't remember how I can pass the arguments when running a project in netbeans. There is not enough documentation on web if anybody could help it would be highly appreciated.

Here is what I know, you can change the run configurations under run> Set Project Configuration >Default Configuration there there is a entry space where zou can enter the arguments to be passed.

I have a file called "AsciiShop.java" which to be runned and I need to pass the arguments stored in a file called "asciishop-A04-PP.i1". When I am using terminal or cmd.exe I can run the program with

java AsciiShop < asciishop-A04-PP.i1

and it works perfect. I want to be able to the same on netbeans. I have placed the file in the default working directory which contains src and bin folders. What should I write in the arguments entry field on the project configurations window, so that it works same like java AsciiShop < asciishop-A04-PP.i1

© Stack Overflow or respective owner

Related posts about java

Related posts about netbeans