Skip to content

JDK Configuration Scripts to install, uninstall Oracle JDK; make all JDK binaries recognizable by update-java-alternatives command, set JAVA_HOME and update PATH.

License

Notifications You must be signed in to change notification settings

onurkat/jdk-config-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jdk-config-scripts

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.

Get Started

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)

image

Press y and the script will do the rest!

You are good to go!

Now you can use installjdk, uninstalljdk and changejdk

How to Use

Install JDK

Run installjdk

image

  • 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.

Change JDK

Run changejdk

image

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.

Uninstall JDK

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>

About

JDK Configuration Scripts to install, uninstall Oracle JDK; make all JDK binaries recognizable by update-java-alternatives command, set JAVA_HOME and update PATH.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages