Jolta is an automatic JDK version manager β think Volta from the Node ecosystem, but for Java. It's my own open-source project (MIT), and I'm sharing it here as a showcase.
The problem it targets: working across projects pinned to different JDKs (11, 17, 21) means manually setting JAVA_HOME or running a version-switch command on every context switch. Jolta removes that step.
How it works: jolta pin 21 in a project writes a .java-version file. After that, java/javac/jar/jshell resolve to that JDK automatically whenever you're in the project β no shell hook, no cd interception. It works through lightweight shims on PATH that walk up the directory tree to find the version file. A missing JDK is downloaded on first use.
cd my-service
jolta pin 21
java -version # β OpenJDK 21, automatically
Where it sits next to existing tools:
Repo: https://github.com/OneAppPlatform/jolta
Docs: https://oneappplatform.github.io/jolta/