godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.89k stars 20.15k forks source link

Invalid java SDK path in Editor Settings.Missing 'bin' directory! #90831

Open code-with-max opened 4 months ago

code-with-max commented 4 months ago

Tested versions

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

  1. Download Godot 4.2.2 for Linux
  2. Try export game to Android

Minimal reproduction project (MRP)

2024-04-17 22-15-03 2024-04-17 22-14-26

code-with-max commented 4 months ago

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.

SimoneStarace commented 4 months ago

@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.

ronsiv8 commented 4 months ago

Huh. I feel like this isn't a very helpful error message, assuming thats what it means every time.

BraveEvidence commented 4 months ago

For macOS , run this in terminal /usr/libexec/java_home

SANYAM591 commented 4 months ago

/usr/lib/jvm/java-17-openjdk-amd64 this is not working for me can someone tell the sollution ?

SimoneStarace commented 4 months ago

/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)

damian-c commented 4 months ago

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.

SimoneStarace commented 4 months ago

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.

Warzmik commented 3 months ago

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