I’ve built an
amd64 snap that includes the OpenJDK JRE.
I’m working with a pre-built binary which expects the Java binary at
amd64, I’m able to solve this problem with a layout:
/usr/bin/java8: symlink: $SNAP/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
The problem is that this symlink path is architecture-specific. If I build the snap on
arm64, the openjdk folder is not going to be under
java-8-openjdk-amd64. I’d like to use the Advanced Grammar feature, but that’s not allowed for layouts.
I’m installing the JRE as a stage-package, so it’s installed using
stage-packages: ... - openjdk-8-jre-headless
What’s the path of least resistance to resolving this?
I don’t need other packages such as the JDK or full JRE and would rather not use the Java plugin.