Hi blendajazi, I don't know if you still need help but this implementation works for me: ...
architectures:
- build-on: amd64
run-on: arm64
apps:
java-server:
command: bin/main
...
environment:
JAVA_HOME: $SNAP/usr/lib/jvm/java-11-openjdk-arm64
PATH: $JAVA_HOME/jre/bin:$PATH
parts:
preparations:
plugin: nil
source: .
...
build-packages:
- openjdk-11-jdk
stage-packages:
- openjdk-11-jre-headless:arm64
...
... View more