Skip to content

Instantly share code, notes, and snippets.

@meysampg
Last active June 6, 2020 12:00
Show Gist options
  • Save meysampg/88d8c9eedc5fed16fc2116b311267b6d to your computer and use it in GitHub Desktop.
Save meysampg/88d8c9eedc5fed16fc2116b311267b6d to your computer and use it in GitHub Desktop.
# define alternatives
update-alternatives --install /usr/bin/java java /opt/lib/jdk/bin/java 100
update-alternatives --install /usr/bin/javac javac /opt/lib/jdk/bin/javac 100
update-alternatives --install /usr/bin/javaws javaws /opt/lib/jdk/bin/javaws 100
# do config
update-alternatives --config java
update-alternatives --config javac
update-alternatives --config javaws
@meysampg
Copy link
Author

meysampg commented Jun 6, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment