# Raspberry 4 export failure

**URL:** <https://discourse.processing.org/t/raspberry-4-export-failure/38746>\
**Category:** Processing for Pi\
**Created:** [September 13, 2022, 7:18pm UTC](https://discourse.processing.org/t/raspberry-4-export-failure/38746 "2022-09-13T19:18:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugo1](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@hugo1](https://discourse.processing.org/u/hugo1)\
**Post date:** [September 13, 2022, 7:18pm UTC](https://discourse.processing.org/t/raspberry-4-export-failure/38746/1 "2022-09-13T19:18:12Z")

</div>

Hi!  
Trying to export an app running great launched via processing IDE, still when it’s exported in “Raspberry Pi 32-bit arm” mode and launched in the terminal I get this error:

java.lang.UnsatisfiedLinkError: no processing-io in java.library.path: /home/juke/sketchbook/jukebox\_test\_6/linux-arm:/home/juke/sketchbook/jukebox\_test\_6/linux-arm/lib  
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2429)  
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)  
at java.base/java.lang.System.loadLibrary(System.java:1989)  
at processing.io.NativeInterface.loadLibrary(Unknown Source)  
at processing.io.GPIO.(Unknown Source)  
at jukebox\_test\_6.setup(jukebox\_test\_6.java:67)  
at processing.core.PApplet.handleDraw(PApplet.java:2088)  
at processing.awt.PSurfaceAWT$9.callDraw(PSurfaceAWT.java:1386)  
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:356)

I’ve installed open JDK 17 still it doesn’t work, same error.  
I understand that java doesn’t find its lib, but how could I fix this?

Thanks!

Hugo

---

<div class="post-metadata">

**Author:** ![moma](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@moma](https://discourse.processing.org/u/moma)\
**Post date:** [November 1, 2023, 10:36am UTC](https://discourse.processing.org/t/raspberry-4-export-failure/38746/2 "2023-11-01T10:36:44Z")

</div>

Hello,  
the same bug occurred to me. I found an easy solution to fix it but also made a bug report here:

> <https://github.com/benfry/processing4/issues/799#issue-1972103087>
>
> \## Description
> 
> 
> When the exported script is executed it crashes and prints o…ut the following error message:
> "java.lang.UnsatisfiedLinkError: no processing-io in java.library.path:"
> 
> \## Expected Behavior
> 
> 
> To get a working script after exporting a sketch using the Hardware I/O Library to Raspberry Pi.
> The proposed change would be to include the corresponding "libprocessing-io.so" file automatically during the export.
> 
> \## Current Behavior
> 
> I can get the sketch running by manually copying the file "libprocessing-io.so" into the "lib" folder of the exported sketch.
> 
> \## Steps to Reproduce
> 
> 
> The most simple sketch to reproduce the bug:
> import processing.io.\*;
> GPIO.pinMode(4, GPIO.INPUT\_PULLUP);
> 
> 1. Export the above sketch to Linux Raspberry Pi 64 or 32 bit.
> 2. Execute the script in terminal.
> 
> \## Your Environment
> 
>  
> 
> \* Processing version: 4.3
> \* Operating System and OS version (for running the exported script): Raspberry Pi 4, Raspberry Pi OS (64-bit) Published: 2023-10-10
> \* Other information: Problem occurs when sketch is exported on the Raspberry Pi 4 itself or as well on a MacBook Pro M2.
> 
> \## Possible Causes / Solutions

To get a working script you would have to manually copy the file “/Documents/Processing/libraries/io/library/linux-arm64/libprocessing-io.so” into the “lib” folder of the exported sketch.

Hope it helps.
