install sdkman
1
2
| curl -s "https://get.sdkman.io" | bash
source "/home/swapanc/.sdkman/bin/sdkman-init.sh"
|
Use sdkman to install Graalvm and Openjdk on WSL Ubuntu via Vscode.
The versions below are mapped together. So the 11.0.11 jdk is mapped to 12.2.0 Graalvm version
- for exmaple below shows that Graalvm version 21.0.3 is mapped to jdk 11.0.13
install java via SDKMAN
1
2
| sdk list java | grep adpt
sdk install java 11.0.11.hs-adpt
|
install graalvm via SDKman
1
2
| sdk list java | grep grl
sdk install java 21.2.0.r11-grl
|
1
| sdk default java 11.0.11.hs-adpt
|
install GraalVMnative-image
1
2
3
4
5
| sdk use java 21.2.0.r11-grl
echo $JAVA_HOME
export GRAALVM_HOME=/home/swapanc/.sdkman/candidates/java/21.2.0.r11-grl
gu install native-image
$GRAALVM_HOME/bin/native-image --version
|
add GraalVM_HOME to .bashrc
1
| export GRAALVM_HOME=/home/swapanc/.sdkman/candidates/java/21.2.0.r11-grl
|
install maven via SDKman
1
2
| sdk list maven
sdk install maven 3.8.4
|
passwordless SSH github setup
1
| ssh-keygen -t ed25519 -C "swapan.chakrabarty@datahawklab.com"
|
- copy public key to github
1
2
| git config --global user.name "githubusername"
git config --global user.email first.last@site.com
|