Issue
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?
Solution
- What you see in the Java control panel is the JRE version.
- What you see in the terminal window by using the command,
java -versionis 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.
Answered By - Arvind Kumar Avinash


0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.