I’ve updated my packages yesterday and now I wanted to sign an apk with jarsigner, but the terminal says it’s not installed. I’ve tried to reinstall jre-openjdk and java-environment-common, but it didn’t fix it.
The full error text:
The application jarsigner is not installed. It may be found in the following packages:
extra/java-environment-common 3-5 /usr/bin/jarsigner
extra/jdk-openjdk 19.0.2.u7-2 /usr/lib/jvm/java-19-openjdk/bin/jarsigner
extra/jdk11-openjdk 11.0.18.u10-2 /usr/lib/jvm/java-11-openjdk/bin/jarsigner
extra/jdk17-openjdk 17.0.6.u10-2 /usr/lib/jvm/java-17-openjdk/bin/jarsigner
extra/jdk8-openjdk 8.362.u09-1 /usr/lib/jvm/java-8-openjdk/bin/jarsigner
Do you want to Install package java-environment-common? (y/N)
y
Executing command: pamac install java-environment-common
Preparing...
Warning: java-environment-common-3-5 is up to date -- skipping
Nothing to do.
Transaction successfully finished.
The command doesn’t return anything.
Also after browsing the folders and files, I found out that there’s no jarsigner file in the openjdk/bin folder.
I installed the official jdk and it has a jarsigner file in the bin folder, that I can use if I execute it through terminal with sudo ./jarsigner, however it’s a bit inconvenient to use like that. I preferred using the jarsigner command.