GraalVM can execute Java applications in the Java HotSpot VM using Graal as the just-in-time compiler.
Graal focuses on providing excellent peak performance for long-running and complex Java applications. While we are still working on further improving the performance of Graal on traditional workloads, there are already programs for which Graal provides better peak performance than existing compilers. In particular, applications using non-traditional bytecode patterns (e.g., Scala applications, heavy Stream API and lambda users) benefit from Graal. There are three main factors contributing to Graal’s peak performance results:
GraalVM provides a compiler and execution system (virtual machine) for Java applications. You can execute any Java program as you can with other Java VMs using a command-line shell.
# export PATH=/path/to/graalAndTruffle/bin:$PATH # java myJavaClass or # java -jar myJavaApp.jar
You can verify that you are using GraalVM with the command java -version. The output should contain "Graal VM" as shown here:
# java -version java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.71-b01-internal-jvmci-0.39, mixed mode)
For more details, see the README file in the release.