Confusing message about missing Java runtime in TypeScript project

Resolved 💬 5 comments Opened Oct 26, 2025 by hboon Closed Jan 10, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.50.0

What subscription do you have?

Plus

Which model were you using?

got-5-codex

What platform is your computer?

Darwin 25.0.0 arm64 arm

What issue are you seeing?

If I do (more often Codex tends to do it itself):

In backend/ run `pnpm run lint`

I get:

• Ran pnpm run lint
 └ The operation couldn’t be completed. Unable to locate a Java Runtime.
 Please visit http://www.java.com for information on installing Java.
 … +2593 lines

  ELIFECYCLE  Command failed with exit code 1.

I suspect it's because lint runs @biomejs/biome for me and it runs non-zero if there are warnings/errors. But this has nothing to do with Java or JVMs and the error is confusing.

What steps can reproduce the bug?

As above

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

5 Comments

github-actions[bot] contributor · 10 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #3978

Powered by Codex Action

hboon · 10 months ago

Not a duplicate.

scopendo · 10 months ago

I have experienced this also. I've notice version 0.50.0 needs a lot more approval and is using python to process a Dart/Flutter source, whereas previously I could see it using rg a lot more, which seemed quicker. I'll be downgrading to version 0.48.0.

ad-si · 10 months ago

I also saw this error in projects without any Java code.

etraut-openai contributor · 7 months ago

Closing old issue.