Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joergi/java-version-switcher
small script to switch between the java versions
https://github.com/joergi/java-version-switcher
arch debian java java-versions jdk linux manjaro openjdk openjdk-java ubuntu
Last synced: 3 months ago
JSON representation
small script to switch between the java versions
- Host: GitHub
- URL: https://github.com/joergi/java-version-switcher
- Owner: joergi
- License: gpl-2.0
- Created: 2015-11-22T16:45:05.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2020-09-15T21:34:49.000Z (over 4 years ago)
- Last Synced: 2024-09-30T14:05:32.581Z (3 months ago)
- Topics: arch, debian, java, java-versions, jdk, linux, manjaro, openjdk, openjdk-java, ubuntu
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# java-version-switcher
# Ubuntu
Switches between the installed java versions for development on a linux (Ubuntu) machine.
If you haven't installed the java versions in the same folder, use `j6.sh`, `j7.sh`, `j8.sh` ... `j11.sh`if they are already installed in the same the same folder, use:
```
$ bash javaswitcher.sh 6
$ bash javaswitcher.sh 7
$ bash javaswitcher.sh 8
...
$ bash javaswitcher.sh 11
```# Arch:
on Arch linux the system already has a built in way to change between the settings:```
archlinux-java get
```
will return the current version, for expample: java-8-openjdkyou can list all versions with:
```
archlinux-java status
```
you can change between the versions with:
JDK 8:
```
sudo archlinux-java set java-8-openjdk
```
or
JDK 11:
```
sudo archlinux-java set java-11-openjdk
```