How to export applications using Processing 3

Could you give a simple example?
Do you mean that I need to run the above sketch in the terminal by
$ -x./sketch