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:
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?
:~/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/ ?
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.
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)?