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_
5 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Not a duplicate.
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.
I also saw this error in projects without any Java code.
Closing old issue.