JDK Configuration Scripts to;
- Install, uninstall Oracle JDK, SAPMachine JDK or any other JDK based on OpenJDK for Linux based operating systems.
- Make all JDK binaries recognizable by update-java-alternatives command
- Set JAVA_HOME and update PATH when you switch your JDK.
- New: Option to download and install SAP Machine JDK 11 directly via
installjdk
script.
Use following commands to setup for the scripts for easy access.
Open new terminal and execute following command to install the scripts. It will also install necessary packages.
source <(curl -s https://raw.githubusercontent.com/onurkat/jdk-config-scripts/master/installscripts.sh)
Press y
and the script will do the rest!
You are good to go!
Now you can use installjdk
, uninstalljdk
and changejdk
Run installjdk
- You can easily download and install SAP Machine JDK by pressing
1
- Or you can press
2
and install any other custom JDK from a .tar.gz file. A GUI window should pop up. Select the tar.gz file in the GUI window.
After the installation, the script will ask you that if you want to set the default JDK now. If so, press Y
.
Run changejdk
Use this script when you want to change your default JDK. Select it on the list and that's all. The script will do all necessary changes.
Run uninstalljdk
Use this script to uninstall a JDK. Warning: Please use this uninstaller for the JDKs only installed by this script.
If you want to uninstall a JDK that you installed with a package, use: sudo apt purge <package_name>