Skip to content

Java setup

Here is how to set up Java in VS Code with mise:

  1. Install the mise-vscode extension (if not already installed)
  2. Install the Oracle’s Java extension or Language Support for Java by Red Hat for VS Code
  3. Open a project with a mise.toml file (or any other files supported by mise)
  4. The Java SDK will be automatically detected and configured by mise-vscode

Here is an example Java project setup with mise: java setup

The settings.json file has been updated with the Java SDK path provided by mise.

When the Java version comes from your global mise config (mise use -g java@21), the path is ~/.local/share/mise/installs/java/global (mise 2026.10.8+). It follows the next mise use -g java@... or mise upgrade, so settings.json does not change. A version set in the project’s mise.toml keeps its own folder.