Can't run java command in codex

Resolved 💬 2 comments Opened Jan 27, 2026 by chouzz Closed Jan 30, 2026

What version of Codex is running?

0.91.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Darwin 24.6.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

iTerm2

What issue are you seeing?

Can't run java command in codex.

Java is a very common command, don't understand why it can't find java.

<img width="644" height="548" alt="Image" src="https://github.com/user-attachments/assets/c310865f-ef0f-4633-ad5b-7f42e122e753" />

What steps can reproduce the bug?

  • Open codex
  • ask it run java --version
  • Can't find java command

What is the expected behavior?

It should find the java command.

Additional information

❯ which java
/opt/homebrew/opt/openjdk@21/bin/java

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗