# Cannot run sketch without a display

**URL:** <https://discourse.processing.org/t/cannot-run-sketch-without-a-display/15723>\
**Category:** Processing for Pi\
**Created:** [November 22, 2019, 3:44pm UTC](https://discourse.processing.org/t/cannot-run-sketch-without-a-display/15723 "2019-11-22T15:44:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clankill3r](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/clankill3r/32/1098_2.png) [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Post date:** [November 22, 2019, 3:44pm UTC](https://discourse.processing.org/t/cannot-run-sketch-without-a-display/15723/1 "2019-11-22T15:44:31Z")

</div>

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:  
> [Running without a Display · processing/processing Wiki · GitHub](https://github.com/processing/processing/wiki/Running-without-a-Display)

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:

```auto
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException
	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
	at java.awt.Window.<init>(Window.java:536)
	at java.awt.Frame.<init>(Frame.java:420)
	at java.awt.Frame.<init>(Frame.java:385)
	at processing.app.Messages.showTrace(Messages.java:177)
	at processing.app.Base$1.run(Base.java:119)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

```

I looked at multiple topics:

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

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/16846/specifying-display-when-running-processing-application-remotely)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.

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.

@gohai
