GraalVM Tools for Java Extension
Improve your developer productivity by leveraging the GraalVM Tools for Java extension in VS Code. The extension enables you to manage GraalVM installations and their components in VS Code and locally. It includes the GraalVM Installation and Configuration Wizard.
Setting GraalVM as the default Java runtime in VS Code enables both just-in-time (Graal) and ahead-of-time (Native Image) compilers, making VS Code a compelling and convenient GraalVM development environment. Any application that runs on a JVM can run unmodified on GraalVM.
The GraalVM Tools for Java extension performs the work of several extensions in one. Key features include:
Installing the Extension
To install the GraalVM Tools for Java extension in VS Code:
GraalVM Installation Wizard
After installing the extension, you can install GraalVM by using the built-in installation wizard (click the Gr icon in the left side Activity Bar).
If you are working behind a firewall, set the proxy for the GraalVM Installation Wizard and components installation. The extension will ask for setting this initially. Set:
For more information about GraalVM's installation and setup, consult the extension documentation.
Java Development and Debugging
Extension Pack for Java from Microsoft has to be installed to develop Java.
The Apache NetBeans Language Server enables Java language support as well. If VS Code detects the Extension Pack for Java from Microsoft installed, it deactivates the Apache NetBeans Language Server.
Integration with VisualVM
The GraalVM Tools for Java extension provides integration with VisualVM, the all-in-one Java (and polyglot) monitoring and troubleshooting tool. VisualVM brings powerful, yet easy-to-use, visual Java tooling to VS Code.
For more information, see the dedicated guide about VisualVM and VS Code integration using the extension.
Support for Micronaut
The GraalVM Tools for Java extension in combination with the GraalVM Tools for Micronaut extension brings native support for the Micronaut framework in VS Code and opens many more possibilities for Java developers. See the Micronaut extension documentation to learn more.
GraalVM Native Image
With the GraalVM Tools for Java extension you can compile your Java application into a native executable using GraalVM Native Image directly in VS Code. The advantages are many:
Learn how you can do that from the extension documentation.
Native Image Debugging
The GraalVM Tools for Java extension provides Java-like debugging of a native executable in a running state directly from within VS Code. You can set breakpoints, inspect the state of your application, even attach the debugger to a Native Image process in VS Code and step over the Java application source code!
Read more about this and find a demo application in the Native Image Debugging guide.
Provide Feedback or Seek Help