Java plugin for the asdf version manager.
After installing asdf, you can add this plugin like this:
asdf plugin-add java
and install new versions like this:
asdf install java openjdk-11.0.1
and switch versions like this:
asdf global java openjdk-11.0.1
If you want or need JAVA_HOME
set you can load our asdf
wrapper to your shell initialization (in .bashrc
, for example):
. ~/.asdf/plugins/java/asdf-java-wrapper.bash
Or in .zshrc
. ~/.asdf/plugins/java/asdf-java-wrapper.zsh
If you need to disable colors, try:
export ASDF_JAVA_PLAIN=truthy
If you need Gradle or Maven, you can use asdf plugins for those, too.
asdf plugin-add maven https://github.com/skotchpine/asdf-maven
asdf plugin-add gradle https://github.com/rfrancis/asdf-gradle
By using this software you agree to:
- Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX
- Oracle Technology Network Early Adopter Development License Agreement in case of EA releases
- Apple's Software License Agreement in case of "Java for OS X"
- International License Agreement for Non-Warranted Programs in case of IBM SDK, Java Technology Edition.
Read the asdf readme for instructions on how to install and manage versions of any language.
If you have trouble with any expected features, have any feature requests or want to contribute, please do an issue.
This plugin wouldn't be possible without the current Java version managers. Here's a list of repos with similar affects that were heavily referenced here: