Studyon Minte9.com
Netbeans




Run with Args



Run -> Set Project Configuration -> Customise
                Arguments: configProd.cfg load_symbol
		Working Directory: D:/developments/gwclient/brdgwclient/src/ro/brddpf/gwclient

	%--- Test.java

	package test;

	public class Test {
	    public static void main(String args[]){

		if (args.length == 0) {
		    System.err.println("Error: no args");
		    System.exit(-1);
		}

		System.out.println("first argument is: " + args[0]);
			// Output: first argument is: configProd.cfg
	    }
	}


http://stackoverflow.com/questions/9168759/netbeans-command-line-arguments-properties-run-arguments-not-working