mardi 5 mai 2015

How to build an executable program using eclipse, there are parameters for the program

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]

Aucun commentaire:

Enregistrer un commentaire