How to export applications using Processing 3

OK. I have the following code. I tried a simple code, and I still think the export applications part behaves strangely.

Screenshot%20from%202019-03-06%2016-42-19