How can I build an executable program written in java using eclipse? and there are arguments need to be passed in ubuntu terminal.
the main function is like this:
public class Sample {
public static void main(String[] args) {...}
and I would like to call it in terminal like this:
$./program args[1] args[2]