Build problems with HelloTemplate flatpak packaging on Ubuntu 24.10 #3
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/examples#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
First, thanks a lot for Java GI and those examples!
Focusing on the HelloTemplate example, I'm experiencing some issues with the flatpak packaging. I'm quite new to flatpak, so I might miss obvious elements.
So far:
flatpak --user install:org.gnome.Platform//45org.gnome.Sdk//45org.freedesktop.Sdk.Extension.openjdk//23.08"build-commands" : [ "/usr/lib/sdk/openjdk/installjdk.sh", "gradle installDist" ],"append-path": "/usr/lib/sdk/openjdk/gradle/bin:/app/jre/bin"This got me to a point where the flatpak is built and installed, but now whenever I try to run it, there's a 20-30s lag before the actual program gets executed (it runs fine aside from this). While it is stuck, the last line displayed is:
F: Running 'bwrap --args 38 -- xdg-dbus-proxy --args=41'Not sure how to resolve that. Not even sure this is related to the HelloTemplate sample, and not some flatpak issue.
Hi, thanks for the bug report!
I'll add the missing packages to the README.md.
The
gradle installDistused to work, and I'm not sure why it's now broken. I tried to apply the changes as you described, but it still doesn't work. Can you please create a PR for your changes inflatpak/my.example.HelloTemplate.json, or paste the full file contents?Regarding the 30 second lag, could it be this issue? https://github.com/flatpak/flatpak/issues/4394
Thanks a lot @jwharm for taking the time to look into that issue, and for the commit.
I have created #4 with the modifications I have done here in the flatpak descriptor.
Tested after clearing my user flatpak repo and .flatpak-builder work directory.
If you still experience an issue with this, feel free to provide an error message, I might have forgotten another prerequisite while investigating my issue.
Thanks for the PR!
I've done some further changes to the manifest, and eventually managed to avoid the installation of the JDK, so now only the JRE is included with the installed application.
I also updated the runtimes to GNOME 47 and JDK 23.