finally we save the changes and close the file. To apply the changes we need to run the following command
``` bash
source ~/.bash_profile
```
## Using sdkman
sdkman is a tool that allows you to manage development kits including JDK. It is possible to run it on Linux and Mac without additional software. On windows one can use it after installing Git Bash and MinGW.
Refer to the https://sdkman.io webpage for more info and instructions
### Installation on supported systems - open a terminal window and enter:
``` bash
curl -s"https://get.sdkman.io" | bash
```
Follow the instructions on-screen to complete installation.
Apply changes by entering:
``` bash
source"$HOME/.sdkman/bin/sdkman-init.sh"
```
check the version using the command
``` bash
sdk version
```
If the tool is now properly installed the result of the previous command will be:
``` bash
sdkman 5.x.x
```
### Typical usage
After installation you will typically use commands like
``` bash
sdk list java
```
list the available versions
``` bash
sdk install java
```
install latest java, add version number to install specific java