简体   繁体   中英

Set Local GraalVM JDK in Spring Boot Native

Whenever i run the gradle task bootBuildImage , GraalVM JDK is downloaded for every new project as the console states below:

Downloading from https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.1.0/graalvm-ce-java11-linux-amd64-21.1.0.tar.gz

How can i set an offline GraalVM JDK for every new project?

You can use「SDKMAN」to resolve your question. commant is:

export JAVA_HOME=$HOME/.sdkman/candidates/java/21.0.0.r8-grl

The SDKMAN is a command tool to switch java enviroment

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM