# P4 on Pi4 (is not a joke)

**URL:** <https://discourse.processing.org/t/p4-on-pi4-is-not-a-joke/31497>\
**Category:** Processing for Pi\
**Created:** [July 30, 2021, 2:21pm UTC](https://discourse.processing.org/t/p4-on-pi4-is-not-a-joke/31497 "2021-07-30T14:21:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![matheplica](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/matheplica/32/21035_2.png) [@matheplica](https://discourse.processing.org/u/matheplica)\
**Post date:** [July 30, 2021, 2:21pm UTC](https://discourse.processing.org/t/p4-on-pi4-is-not-a-joke/31497/1 "2021-07-30T14:21:26Z")

</div>

Hi, I’m trying the last alpha release on raspberry pi 4.  
I’ve got this error in bash shell :

> ./processing: 117 java: Exec format error

There is a solution ? Google give me nothing interesting.

---

<div class="post-metadata">

**Author:** ![matheplica](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/matheplica/32/21035_2.png) [@matheplica](https://discourse.processing.org/u/matheplica)\
**Post date:** [July 30, 2021, 2:48pm UTC](https://discourse.processing.org/t/p4-on-pi4-is-not-a-joke/31497/2 "2021-07-30T14:48:12Z")

</div>

Must I install a jdk or jre ? Apt install propose me :  
default-jre 2.11  
or  
open-jdk-16-jre-headless (and number 8, 11, 13, 14)

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [July 31, 2021, 9:16am UTC](https://discourse.processing.org/t/p4-on-pi4-is-not-a-joke/31497/3 "2021-07-31T09:16:58Z")

</div>

There isn’t a release for P4 on Pi4, there is no official support for 32bit or 64bit arm architecture. I have got earlier versions (Sam Pottinger releases to work on both by installing an appropriate jdk). See [Processing in style with Java 11 - #39 by villares](https://discourse.processing.org/t/processing-in-style-with-java-11/13776/39), you will probably find that Ben Fry releases won’t work, because it expects to use a pre-installed jdk but you could [give it a try](https://adoptopenjdk.net/releases.html). Meanwhile my ruby-processing implementation [PiCrate](https://ruby-processing.github.io/PiCrate/) for RaspberryPI4 works fine (I prefer to use ManjaroArm Linux 64 bit OS, but also works with RaspberryPI OS).

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [July 31, 2021, 9:55am UTC](https://discourse.processing.org/t/p4-on-pi4-is-not-a-joke/31497/4 "2021-07-31T09:55:50Z")

</div>

If you are brave, fearless and into python you should give [py5](https://discourse.processing.org/t/new-python-processing-project-py5/30837) a try. I have installed it on ManjaroArm on my RaspberryPi4 and it works a treat. You could use geany or thonny as your ide, learning curve might be a bit steep though.

---

<div class="post-metadata">

**Author:** ![matheplica](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/matheplica/32/21035_2.png) [@matheplica](https://discourse.processing.org/u/matheplica)\
**Post date:** [August 7, 2021, 8:29am UTC](https://discourse.processing.org/t/p4-on-pi4-is-not-a-joke/31497/5 "2021-08-07T08:29:50Z")

</div>

Thanks for answer,  
Finally I install Manjaro, Processing 3.5.3 and openjdk8.  
For me it’s enough.  
Bye

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [August 12, 2021, 7:35am UTC](https://discourse.processing.org/t/p4-on-pi4-is-not-a-joke/31497/6 "2021-08-12T07:35:59Z")

</div>

For folks that are interested see [processing4](https://github.com/processing/processing4)  
Platform.java. An enthusiast might create a workaround, because [PiCrate](https://ruby-processing.github.io/PiCrate/) works fine. I’m not sure javafx is available for arm though.

---

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [August 12, 2021, 11:19am UTC](https://discourse.processing.org/t/p4-on-pi4-is-not-a-joke/31497/7 "2021-08-12T11:19:11Z")

</div>

> [@monkstone](#):
>
> I’m not sure javafx is available for arm though.

It certainly is - see eg. [https://foojay.io/today/javafx-gluon-status-update-dual-screen-on-raspberry-pi-sample-intellij-new-javafx-project-wizard/](https://foojay.io/today/javafx-gluon-status-update-dual-screen-on-raspberry-pi-sample-intellij-new-javafx-project-wizard/)

There used to be some bundled Arm JDKs - eg. Liberica - but can’t find it on their site (easily). Still, should be easy enough to build an Arm runtime including JavaFX modules.

Frank Delporte’s posts on foojay (friends of OpenJDK) are well worth reading - [https://foojay.io/today/category/java/embedded/raspberry-pi/](https://foojay.io/today/category/java/embedded/raspberry-pi/)
