[GH-ISSUE #1217] Prepare fails on a Mac with no JDK: /usr/bin/javac is only a placeholder #305

Closed
opened 2026-11-02 15:38:03 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @pirut on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1217

On a Mac with no JDK installed, Prepare stops with:

Java 25 is needed (a JDK with javac, e.g. Eclipse Temurin 25). Install it, or set JAVA_HOME to it, and try again. Found: /usr/bin/javac -version printed no version: The operation couldn't be completed. Unable to locate a Java Runtime.

/usr/bin/javac is macOS's placeholder, which only says that no Java is installed. java::find in crates/horizon-prepare/src/java.rs takes it from the PATH and reports it as the only JDK found, so the player is told to install Java even though Minecraft's own launcher has usually downloaded a Java 25 runtime already (java-runtime-epsilon, a full JDK with javac).

Seen with launcher 0.17.0 and v2026.10.19.15 on macOS arm64.

Originally created by @pirut on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1217 On a Mac with no JDK installed, Prepare stops with: > Java 25 is needed (a JDK with javac, e.g. Eclipse Temurin 25). Install it, or set JAVA_HOME to it, and try again. Found: /usr/bin/javac -version printed no version: The operation couldn't be completed. Unable to locate a Java Runtime. `/usr/bin/javac` is macOS's placeholder, which only says that no Java is installed. `java::find` in `crates/horizon-prepare/src/java.rs` takes it from the PATH and reports it as the only JDK found, so the player is told to install Java even though Minecraft's own launcher has usually downloaded a Java 25 runtime already (`java-runtime-epsilon`, a full JDK with javac). Seen with launcher 0.17.0 and v2026.10.19.15 on macOS arm64.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#305
No description provided.