# Unknown error message on RPI3 with Processing 3.3.7

**URL:** <https://discourse.processing.org/t/unknown-error-message-on-rpi3-with-processing-3-3-7/441>\
**Category:** Processing for Pi\
**Created:** [May 27, 2018, 2:32pm UTC](https://discourse.processing.org/t/unknown-error-message-on-rpi3-with-processing-3-3-7/441 "2018-05-27T14:32:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![VTVL](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@VTVL](https://discourse.processing.org/u/VTVL)\
**Post date:** [May 27, 2018, 2:32pm UTC](https://discourse.processing.org/t/unknown-error-message-on-rpi3-with-processing-3-3-7/441/1 "2018-05-27T14:32:24Z")

</div>

RPI3 with Ubunutu MATE 16.04 on RPI3

Last year Processing was installed along JRE8 and it worked fine.  
After a corruption of the SSD I did a complete re-installation. Installed the latest Processing IDE 3.3.7. When any ecample os loaded the following error message appears:

> An unexpected, unknown, and unrecoverable error occurred while opening a new editor window. Please report this.

Yep. That is what I am doing here. Any suggestions to fix this?

---

<div class="post-metadata">

**Author:** ![VTVL](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@VTVL](https://discourse.processing.org/u/VTVL)\
**Post date:** [May 27, 2018, 2:35pm UTC](https://discourse.processing.org/t/unknown-error-message-on-rpi3-with-processing-3-3-7/441/2 "2018-05-27T14:35:31Z")

</div>

I should have added…  
about 50 java related items were listed.

---

<div class="post-metadata">

**Author:** ![VTVL](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@VTVL](https://discourse.processing.org/u/VTVL)\
**Post date:** [May 27, 2018, 4:37pm UTC](https://discourse.processing.org/t/unknown-error-message-on-rpi3-with-processing-3-3-7/441/3 "2018-05-27T16:37:04Z")

</div>

Update: I followed the procedure given in

> **[How To Install Java with Apt-Get on Ubuntu 16.04 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04)**
>
> Java and the JVM (Java's virtual machine) are widely used and required for many kinds of software. This article will guide you through the process of installing and managing different versions of Java using \`apt-get\`.

The error message still appears with some examples. For othe examples there is just a small square window with a grey background.

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [May 27, 2018, 5:13pm UTC](https://discourse.processing.org/t/unknown-error-message-on-rpi3-with-processing-3-3-7/441/4 "2018-05-27T17:13:27Z")

</div>

Possible to copy and paste your error msg here? Sometimes the first line or two provides info crucial to debug.

Kf

---

<div class="post-metadata">

**Author:** ![gohai](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gohai/32/25_2.png) [@gohai](https://discourse.processing.org/u/gohai)\
**Post date:** [May 30, 2018, 5:03pm UTC](https://discourse.processing.org/t/unknown-error-message-on-rpi3-with-processing-3-3-7/441/5 "2018-05-30T17:03:22Z")

</div>

@VTVL I would suggest sticking with Raspbian if you want to use Processing, since this is the environment that is most tested. [Here](https://pi.processing.org/get-started/) you can find a pre-configured image for you to quickly test on a microSD card.

There is of course nothing in the source code that would attempt to throw a wrench into any other distribution it runs ons…

---

<div class="post-metadata">

**Author:** ![VTVL](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@VTVL](https://discourse.processing.org/u/VTVL)\
**Post date:** [June 2, 2018, 12:51pm UTC](https://discourse.processing.org/t/unknown-error-message-on-rpi3-with-processing-3-3-7/441/6 "2018-06-02T12:51:59Z")

</div>

I did two things which helped to correct the problem:

1. 

First uninstall processing

and

```
  then ensure that java 8 oracle is installed and set as the JAVA_HOME in /etc/environment

```

Then reinstall processing 3.3.7

Then Processing worked BUT see 2) below:

**JAVA configuration**

~$ sudo update-alternatives --config java

```
  There are 2 choices for the alternative java (providing /usr/bin/java).

    Selection Path Priority Status
```

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [June 2, 2018, 4:29pm UTC](https://discourse.processing.org/t/unknown-error-message-on-rpi3-with-processing-3-3-7/441/7 "2018-06-02T16:29:36Z")

</div>

@VTVL thank you so much for sharing your solution with the forum.

---

<div class="post-metadata">

**Author:** ![VTVL](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@VTVL](https://discourse.processing.org/u/VTVL)\
**Post date:** [June 3, 2018, 11:21am UTC](https://discourse.processing.org/t/unknown-error-message-on-rpi3-with-processing-3-3-7/441/8 "2018-06-03T11:21:13Z")

</div>

Complete messge

I did two things which helped to correct the problem:

1. 

First uninstall processing

and

then ensure that java 8 oracle is installed and set as the JAVA\_HOME in /etc/environment

Then reinstall processing 3.3.7

Then Processing worked BUT see 2) below:

JAVA configuration

~$ sudo update-alternatives --config java  
There are 2 choices for the alternative java (providing /usr/bin/java).

## Selection Path Priority Status

0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 auto mode  
1 /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java 1074 manual mode

- 2 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode

Press to keep the current choice[\*], or type selection number:  
~$ echo $JAVA\_HOME  
/usr/lib/jvm/java-8-oracle

The /usr/lib/jvm actually contains

symlink folder default-java which points to folder java-1.8.0-openjdk-armhf

symlink folder java-1.8.0-openjdk-armhf folder java-8-openjdk-armhf

folder java-8-openjdk-armhf

folder java-8-oracle

/etc/environment

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java"  
JAVA\_HOME="/usr/lib/jvm/java-8-oracle/jre/bin/java"

1. 

… BUT the graphics was not smooth. It sort of blinked.

Some reading about RPI issues with blinking graphics led to the suggestion to change the default settings in raspi-config.

The suggestion to change the memory split did not help. Leave it on 64.

The suggestion to select GL (Fake KMS) Open desktop driver or GL (Full MKS) worked with option G2 (Fake MKS). I.E. no more blinking graphics. I selected GL (Fake KMS).

So Processing 3.3.7 can be used with Ubuntu MATE 16.04 with the configuration as noted here.

The next step is to once again configure for headless operation with VNC. …
