https://github.com/reflexdemon/switch-jdk-debian-alternatives
This is a simple tool to switch JDK on any dabian using alternatives
https://github.com/reflexdemon/switch-jdk-debian-alternatives
adoptopenjdk bash java openjdk shell tools
Last synced: about 2 months ago
JSON representation
This is a simple tool to switch JDK on any dabian using alternatives
- Host: GitHub
- URL: https://github.com/reflexdemon/switch-jdk-debian-alternatives
- Owner: reflexdemon
- Created: 2020-03-18T12:31:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-18T12:57:31.000Z (over 6 years ago)
- Last Synced: 2025-02-23T11:41:48.560Z (over 1 year ago)
- Topics: adoptopenjdk, bash, java, openjdk, shell, tools
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# switch-jdk-debian-alternatives
This is a simple tool to switch any AdoptOpenJDK on any Debian using alternatives like Ubuntu, Linux Mint etc.,
This is the outcome of my previous blog on switching JDKs: https://blog.vpv.io/2019/07/installing-open-jdk-on-ubundu.html
## Usage
This tool can be used without installing on your computer. Using the command line tool like `curl` this can be used.
The usage is like this:
```bash
$ curl -s https://raw.githubusercontent.com/reflexdemon/switch-jdk-debian-alternatives/master/switch-jdk.sh | sudo bash -s 11
```
or
```bash
$ curl -s https://raw.githubusercontent.com/reflexdemon/switch-jdk-debian-alternatives/master/switch-jdk.sh | sudo bash /dev/stdin 11
```
# Installing the correct Adopt Open JDK please use this link
To install the latest AdoptOpenJDK visit https://adoptopenjdk.net/installation.html#linux-pkg
## TODO
1. Expand the installation beyond `HotSpot` and support `OpenJ9`
2. May be later Support other JDKs like Oracle and Open JDKs
3. Support other Linux distributions
## Contribution
I am open to take PR for any of the above mentioned TODOs. I am all ears for anything new that can be used.