linux problem ./jdk/bin/java: no such file or directory

Started by box797 on

Topic category: Troubleshooting, bugs, and solutions

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
linux problem ./jdk/bin/java: no such file or directory
Wed, 09/17/2025 - 16:16 (edited)

i downloaded and extracted linux version to directory and tried to run .sh with terminal(shortcut doesn't work) and error occured line 41: ./jdk/bin/java: No such file or directory
i tried many versions beta, new and old

linux
Linux Mint 22.1 Cinnamon
java 21 installed
glibc newest

Edited by box797 on Wed, 09/17/2025 - 16:16
Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i only have .sh where java…
Wed, 09/17/2025 - 05:18

i only have .sh where java is located?

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It didn't help
Wed, 09/17/2025 - 05:30

It didn't help

Does this file exist in…
Wed, 09/17/2025 - 15:35

Does this file exist in subfolder of installation?

/jdk/bin/java

If yes, there is some permissions problem, if not, try reinstalling it

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i fixed it, The problem was…
Wed, 09/17/2025 - 16:04

i fixed it, The problem was that I launched in the terminal through the full path to .sh and he was looking for JDK/Bin/Java in a home folder and not the Mcreator folder

 

Solve: try to launch .sh from mcreator folder

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it's only in last…
Wed, 09/17/2025 - 16:28

it's only in last expirimental version in normal all okay

Caused by: java.io…
Thu, 09/18/2025 - 14:24
  1. Caused by: java.io.IOException: Cannot run program "/home/felix/Desktop/mcreator/jdk/bin/java" (in directory "/root/.mcreator/gradle/daemon/8.14.2"): error=13, Permission denied

You need to chmod +x /home/felix/Desktop/mcreator/jdk/bin/java