Last active
March 26, 2018 18:05
-
-
Save Wasapl/cc466142671d7c662d6e6938e45e76aa to your computer and use it in GitHub Desktop.
Replace JAVA path in PATH variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Asume there is path to java in PATH variable | |
# Asume there JAVA_HOME_8_x64 variable defined | |
# Asume you have sed | |
export PATH=$(echo $PATH| sed -r -e "s|(:?)/usr/lib/jvm/[^:]+|\\1$JAVA_HOME_10_X64/bin|") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment