Invalid java SDK path in Editor Settings.Missing 'bin' directory!
Tested versions
- Reproducible in Godot 4.2.2 (Linux)
- Not reproducible in Goodot 4.2.1 (Linux)
System information
Ubuntu 23.10
Issue description
Error "Invalid java SDK path in Editor Settings.Missing 'bin' directory!" with exporting game to Android, but all java paths a same as Godot 4.2.1 and have no problem to export.
Problem only with 4.2.2 version.
Steps to reproduce
- Download Godot 4.2.2 for Linux
- Try export game to Android
Minimal reproduction project (MRP)
I'll add it. In my case, for version 4.2.2, the path should look like this:
/usr/lib/jvm/java-17-openjdk-amd64
i.e. "/bin" should be removed. This will not be the default value in the system paths and needs to be done manually.
@trash-max Thank you very much.
I had the same issue but putting this path /usr/lib/jvm/java-17-openjdk-amd64 solved the problem.
Huh. I feel like this isn't a very helpful error message, assuming thats what it means every time.
For macOS , run this in terminal /usr/libexec/java_home
/usr/lib/jvm/java-17-openjdk-amd64 this is not working for me can someone tell the sollution ?
/usr/lib/jvm/java-17-openjdk-amd64 this is not working for me can someone tell the sollution ?
Execute this command to find the path of your JDK
readlink -f $(which java)
Confirmed that my JDK path was correct, yet this error still persists on the 4.2.2 snap version. This is almost certainly a snap problem, because I was able to get around it by installing the 4.2.2 binary from godotengine.org instead.
Hi @damian-c
Confirmed that my JDK path was correct, yet this error still persists on the 4.2.2 snap version. This is almost certainly a snap problem, because I was able to get around it by installing the 4.2.2 binary from godotengine.org instead.
I cannot confirm this since I have installed Godot by downloading the binary file directly from the website.
Hello, in my case the route in Windows 11 and godot 4.2.2, was C:\Program Files\Eclipse Adoptium\jdk-17.0.10.7-hotspot