Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
code-with-max opened this issue Apr 18, 2024 · 9 comments
Open

Comments

@code-with-max
Copy link

code-with-max commented Apr 18, 2024

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
Copy link
Author

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
Copy link

@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
Copy link

ronsiv8 commented Apr 25, 2024

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

@BraveEvidence
Copy link

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

@SANYAM591
Copy link

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

@SimoneStarace
Copy link

/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
Copy link

damian-c commented May 8, 2024

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
Copy link

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
Copy link

Warzmik commented May 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants