Exported app on a headless Pi 4 with television connected to HDMI port – how to set display?

Hello! Is there a way to define an external display for an exported Processing app?

My scenario: I have a headless Raspberry Pi 4 I use as a video player connected to a 4K television. The Pi does not have a keyboard or a mouse and does not have any GUI system installed. I have exported a Raspberry Pi Processing app on another computer and transferred it to the Pi.

When I run the app on my Pi in an SSH session (the only way to access the Pi) I get the following:

Cannot run sketch without a display. Read this for possible solutions:
Running without a Display · processing/processing Wiki · GitHub

Is there a way to have the sketch use the television connected to one of the HDMI ports on the Pi as the display?