Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Version mismatch between control panel and terminal

Tags:

java

macos

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

enter image description here

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

enter image description here

I already restarted my terminal, restarted my Mac, but it still shows the same.

How do I fix this?

like image 407
Sumit Avatar asked Oct 26 '25 21:10

Sumit


1 Answers

  • What you see in the Java control panel is the JRE version.
  • What you see in the terminal window by using the command, 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.

like image 197
Arvind Kumar Avinash Avatar answered Oct 29 '25 11:10

Arvind Kumar Avinash



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!