> What Java is desperately missing is something like Python's `uv`.

JBang exist and (if I'm not mistaken) predates uv. See jbang.dev