I have trying to work out with Netbeans for the last two days. I am writing a scanner program that takes input of the scanner from a file token_list.java. So How can we give this token_list.java as an argument to the Main file ( Scanner.java). When I am doing it on the Unix system using command line argument all works fine and well. The problem comes when i am doing it on netbeans. I have even tried giving the file name token_list.java as an argument in the run properties in the project. But then later i realized that the command line arguments for the run properties are for just giving the inputs rather than the file name.
Update : The command that I give in unix is $java Scanner input.text So What I am now trying to do in netbeans is right click on the scanner.java and run it. But it then gives the error that no arguments have been passed. I am taking the file name in argv