asdf plugin add java
asdf install java adoptopenjdk-jre-17.0.7+7
echo '. "$HOME/.asdf/plugins/java/set-java-home.bash"' | tee -a ~/.bashrc
source ~/.bashrc
asdf plugin add ruby
asdf install ruby jruby-9.4.2.0
asdf local java adoptopenjdk-jre-17.0.7+7
asdf local ruby jruby-9.4.2.0
Potentially helpful:
https://github.com/jruby/jruby/wiki/Improving-startup-time