jabba
Java Version Manager inspired by nvm (Node.js). You might have come across similar beauty in Go (gvm) or Ruby (rvm).
Tested at this point very lightly on Mac OS X and Linux. Windows support is coming in #1.
Installation
curl -o- https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
Installer creates
~/.jabbaand adds initialization code to ~/.bashrc (and ~/.bash_profile, ~/.zshrc, ~/.profile) (provided they exist).
Usage
# install particular version of jdk
jabba install 1.8 # "jabba use 1.8" will be called automatically
# list all installed jdk's
jabba ls
# switch to a different version of jdk
jabba use 1.6.65
# list available jdk's
jabba ls-remote
For more information see jabba --help.
Development
PREREQUISITE: go1.6
git clone https://github.com/shyiko/jabba $GOPATH/src/github.com/shyiko/jabba
cd $GOPATH/src/github.com/shyiko/jabba
make fetch
go run jabba.go
# to test a change
make test # or "test-coverage" if you want to get a coverage breakdown
# to make a build
make build # or "build-release" (latter is cross-compiling jabba to different OSs/ARCHs)
License
By using this software you agree to Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX and Oracle Technology Network Early Adopter Development License Agreement (in case of EA releases) (... and Apple's Software License Agreement in case of "Java for OS X").
This software is for educational purposes only.
Use it at your own risk.
