I recently updated Java on my Mac using the control panel.
on the Control Panel it now shows Java version as Java 8 Update 251

But, when I check for the Java Version from my Terminal it still shows an older version:

I already restarted my terminal, restarted my Mac, but it still shows the same.
How do I fix this?
java -version is the JDK version.You can check all installed version in your system using the following command:
/usr/libexec/java_home -V
Follow the JDK installation instruction if you want to install a specific patch of JDK 8.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With