# Portable linux build is not happy

**URL:** https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412
**Category:** Processing
**Created:** [May 19, 2025, 9:14pm UTC](https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412 "2025-05-19T21:14:19Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![joshg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/joshg/32/20226_2.png) [@joshg](https://discourse.processing.org/u/joshg)
#### Post date: [May 19, 2025, 9:14pm UTC](https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412/1 "2025-05-19T21:14:19Z")

</div>

The new Gradle build of Processing 4.4+ is generating a portable Linux build (yay! some of us get annoyed with snaps!) that doesn’t want to start (boo! what!).

On running ./Processing in the bin folder, I get:

```auto
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.

```

I’ve tried mucking about with environment variables to point to the right location, but then realized, wait, this is the portable version and the file it needs is right there in the lib folder. So what gives?

---

<div class="post-metadata">

### Author: ![joshg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/joshg/32/20226_2.png) [@joshg](https://discourse.processing.org/u/joshg)
#### Post date: [May 19, 2025, 9:16pm UTC](https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412/2 "2025-05-19T21:16:32Z")

</div>

(I could make an issue in github if wanted, but I thought I’d post here first in case I’m missing something silly.)

---

<div class="post-metadata">

### Author: ![joshg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/joshg/32/20226_2.png) [@joshg](https://discourse.processing.org/u/joshg)
#### Post date: [May 21, 2025, 1:55am UTC](https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412/3 "2025-05-21T01:55:02Z")

</div>

```auto
:~/bin/Processing/bin$ strace -o tmp.txt ./Processing
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.
:~/bin/Processing/bin$ ls
Processing tmp.txt
:~/bin/Processing/bin$ grep libjava.so tmp.txt 
access("/home/josh/bin/Processing/lib/libjava.so", F_OK) = -1 ENOENT (No such file or directory)
access("/home/josh/bin/Processing/jre/lib/libjava.so", F_OK) = -1 ENOENT (No such file or directory)
stat("/home/josh/lib/libjava.so", 0x7fff53ae8150) = -1 ENOENT (No such file or directory)
write(2, "Error: could not find libjava.so", 32) = 32

```

looks like it’s looking in lib/ but not in lib/runtime/ ?

---

<div class="post-metadata">

### Author: ![stefterv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/stefterv/32/21678_2.png) [@stefterv](https://discourse.processing.org/u/stefterv)
#### Post date: [May 21, 2025, 8:47am UTC](https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412/4 "2025-05-21T08:47:26Z")

</div>

Hi @joshg I setup a fresh Debian 12 VM and was not seeing the same issue

---

<div class="post-metadata">

### Author: ![stefterv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/stefterv/32/21678_2.png) [@stefterv](https://discourse.processing.org/u/stefterv)
#### Post date: [May 21, 2025, 8:50am UTC](https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412/5 "2025-05-21T08:50:13Z")

</div>

Ah putting Processing in ~/bin does cause the same issue, I would try installing Processing somewhere else

---

<div class="post-metadata">

### Author: ![joshg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/joshg/32/20226_2.png) [@joshg](https://discourse.processing.org/u/joshg)
#### Post date: [May 21, 2025, 2:03pm UTC](https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412/6 "2025-05-21T14:03:03Z")

</div>

That fixed it!

If I were to want to fix this issue, where would I start looking? Gradle config stuff, or app code?

---

<div class="post-metadata">

### Author: ![stefterv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/stefterv/32/21678_2.png) [@stefterv](https://discourse.processing.org/u/stefterv)
#### Post date: [May 21, 2025, 2:11pm UTC](https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412/7 "2025-05-21T14:11:41Z")

</div>

Great, glad to hear that worked!

Thanks for being proactive about looking into it — really appreciated. To properly resolve this, the fix would need to happen upstream in the Jetpack Compose packager, as it’s not something that’s configured within the Processing repo itself.

---

<div class="post-metadata">

### Author: ![joshg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/joshg/32/20226_2.png) [@joshg](https://discourse.processing.org/u/joshg)
#### Post date: [May 25, 2025, 5:50am UTC](https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412/8 "2025-05-25T05:50:41Z")

</div>

I’ve been poking at this periodically when time permits; still a lot to learn about Compose. I also couldn’t shake the dream that it’s something closer to home that’s fixable, and tried testing different versions. The problem does not happen with 4.4.0, and starts at 4.4.1. Would that fit with it being an upstream issue (maybe a Compose version change or something)?

---

<div class="post-metadata">

### Author: ![stefterv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/stefterv/32/21678_2.png) [@stefterv](https://discourse.processing.org/u/stefterv)
#### Post date: [May 25, 2025, 6:05am UTC](https://discourse.processing.org/t/portable-linux-build-is-not-happy/46412/9 "2025-05-25T06:05:09Z")

</div>

Ah okay, the only thing that changed between those two versions is going from Adoptium JDK 17.0.14 to Adoption JDK 17.0.8
