Install this extension from the VS Code Marketplace
Restart VS Code
Usage
The extension adds a new activity bar icon (Java icon) that opens the Jabba Manager view. From there you can:
View all installed Java versions.
The version currently set as the local default for the workspace (via .jabbarc) will be marked with a folder icon ($(folder)).
The version set as the global default is marked with a '✓'.
Click on any version in the list to set it as the local version for the current workspace (this will create or update the .jabbarc file in your workspace root).
Use the context menu (right-click) on a version for more actions:
Set as Global Default
Uninstall Version
Use the buttons in the view's title bar:
Add Java Version: Install a new Java version.
Switch Java Version: Change the current global Java version (using jabba use).
Refresh Versions: Update the list of installed versions.
Commands
Add Java Version: Install a new Java version
Switch Java Version: Change the current Java version
Set Global Default: Set the default Java version for all projects
Remove Java Version: Uninstall a Java version
Refresh Versions: Update the list of installed versions
Configuration
The extension can be configured through VS Code settings:
jabbaManager.defaultJavaVersion: Default Java version to use
jabbaManager.showVersionDetails: Show detailed version information in the tree view
About Jabba
This extension is built on top of Jabba, a cross-platform Java Version Manager inspired by nvm (Node.js). Jabba provides a unified experience for installing and switching between different versions of JDK across different operating systems.
Supported Java Distributions
OpenJDK
Oracle JDK
Oracle Server JRE
Adopt OpenJDK (Hotspot & Eclipse OpenJ9)
Zulu OpenJDK
IBM SDK
GraalVM CE
Liberica JDK
Amazon Corretto
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This extension is licensed under the MIT License. See the LICENSE file for details.
Disclaimer
This is an unofficial extension and is not affiliated with or endorsed by the Jabba project. All trademarks and registered trademarks are the property of their respective owners.