Why can't I select my jarsigner in the editor settings?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Zedespook

I wanted to try out Android development in Godot. I followed the guide to word, yet the part when it says

“The jarsigner executable (from JDK 6 or 8) - On Windows, OpenJDK installs to a dir like %PROGRAMFILES%\ojdkbuild\java-1.8.0-openjdk-1.8.0.232-2\bin. On Linux, it typically installs to a dir like /usr/bin/jarsigner.”

I am on Linux, and so I went to the file path “/usr/bin/jarsigner”, and there was the jarsigner, but as strange as it sounds it’s the only file I cannot open. I could set the path for any other binary in that folder except for that.

I tried inputting the path (/usr/bin/jarsigner), but to no avail. Can somebody give a helping hand in this? What am I doing wrong?

Does it work if you enter /usr/bin in the FileDialog then manually select the jarsigner binary?

Calinou | 2020-06-02 14:15

:bust_in_silhouette: Reply From: Becbunzen

What Java version are you using? My path in the jarsigner setting field is this:

/usr/lib/jvm/java-13-openjdk/bin/jarsigner

My /usr/bin/jarsigner is a link:

/usr/bin/jarsigner -> /usr/lib/jvm/default/bin/jarsigner

You can check this with this command:

$ ls -l /usr/bin/jarsigner

The target does not exist. I have not cared to investigate why. I can build Android apps fine. If your situation is the same, try to find where the real jarsigner file is.

I am on Manjaro, an Arch Linux variant. So the situation might be different from yours.

I use the same distro, and did the same relink, issue persists.

Zedespook | 2020-06-25 10:09

Do not use the link, use the path to the real file that you check exists.

What is the full path to your jarsigner file?

Becbunzen | 2020-06-25 10:24

:bust_in_silhouette: Reply From: pmartin

I was stack with the same problem. I double check the java installation and everything was ok, other software was working like cordova, so I decided to try compiling Godot following this guide (https://docs.godotengine.org/es/stable/development/compiling/compiling_for_x11.html) and it was very easy.

Now the Godot’s file explorer shows all files inside /use/lib, and it looks has no problem with symbolic link files.