Cannot run sketch without a display

I’m using a jetson nano which is pretty comparable to a raspberry PI.

At the moment when I run processing I get a:

Cannot run sketch without a display. Read this for possible solutions:

The wiki is not helping, cause I want to run with a display.

I have tried both processing for Linux ARM as well Processing for PI.
For the PI I get the following stacktrace:

Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException
	at java.awt.GraphicsEnvironment.checkHeadless(
	at java.awt.Window.<init>(
	at java.awt.Frame.<init>(
	at java.awt.Frame.<init>(
	at java.awt.event.InvocationEvent.dispatch(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$500(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

I looked at multiple topics:

Here is a suggestion to use export DISPLAY= ":0"
or “:1” or “0:0” or “localhost:0.0”

If I set it to :1 or localhost:0.0 then I can’t even launch my code editor. If I set it to :0 or :0.0 then I can launch, but I will still have the Cannot run sketch without a display error.

Any help is welcome.