godot icon indicating copy to clipboard operation
godot copied to clipboard

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

Open code-with-max opened this issue 2 years ago • 15 comments

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

  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 avatar Apr 18 '24 03:04 code-with-max

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.

code-with-max avatar Apr 18 '24 03:04 code-with-max

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

SimoneStarace avatar Apr 21 '24 16:04 SimoneStarace

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

ronsiv8 avatar Apr 25 '24 00:04 ronsiv8

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

BraveEvidence avatar Apr 26 '24 12:04 BraveEvidence

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

SANYAM591 avatar May 03 '24 11:05 SANYAM591

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

SimoneStarace avatar May 04 '24 10:05 SimoneStarace

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.

damian-c avatar May 08 '24 20:05 damian-c

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.

SimoneStarace avatar May 12 '24 00:05 SimoneStarace

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

Warzmik avatar May 20 '24 00:05 Warzmik