You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"1. Clone processing4 repo, and move to the project directory.
./gradlew run
Hit the Run button, and get exception
java.io.IOException: Cannot run program "(...)/processing4/app/bin/java": error=2, No such file or directory
"
snippet
Additional context
After examining around processing.app.Platform.getJavaHome(), I realized that Processing cannot find java when the resource directory (app/build/compose/tmp/prepareAppResources in my case) does not contain it.
Is the directory supposed to contain a sort of JAVA_HOME for Processing, or should it just use system java as a fallback?
Thank you for your quick reply.
I tried the branch of #1054, and the build process (./gradlew run more precisely) failed with
> Task :app:includeJdk FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:includeJdk'.
> Couldn't follow symbolic link '/usr/lib/jvm/java-17-openjdk-amd64/lib/src.zip'.
I just realized that /usr/lib/jvm/java-17-openjdk-amd64/lib/src.zip is indeed a symbolic link to ../../openjdk-17/src.zip which does not exist untill openjdk-17-source is installed (in Ubuntu).
After installing it, the build is completed.
Activity
Stefterv commentedon Apr 23, 2025
Thanks for the heads up!
Could you check if you have the same issue with #1054 ? Otherwise we'll be fixing it and then breaking it again directly after 😅
EDIT: Tested it myself,
mainhas the issue you're describing when running from the command line and on #1054 it works fineJunology commentedon Apr 23, 2025
Thank you for your quick reply.
I tried the branch of #1054, and the build process (
./gradlew runmore precisely) failed withJunology commentedon Apr 23, 2025
I just realized that
/usr/lib/jvm/java-17-openjdk-amd64/lib/src.zipis indeed a symbolic link to../../openjdk-17/src.zipwhich does not exist untillopenjdk-17-sourceis installed (in Ubuntu).After installing it, the build is completed.
Thank you.