i want to change my java version from 6 to 8. But in terminal it always active as java 6 i have run this command : export JAVA_HOME=/usr/libexec/java_home -v 1.8.0_271
but it always show as java 1.6.0 after i run those command any suggestion or other way that i need to do or check first ?
i delete jdk folder 1.6.0 when i run java -version the result is
jenv: version 1.6.0.65' is not installed jenv: version
1.6.0.65' is not installed
am i missing something ?
thank you