Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JDK in Mac OS X

Tags:

java

macos

I found two JDK in my Mac, one is in the path:'/System/Library/Java/JavaVirtualMachines/1.6.0jdk' another is in the path:'/Library/Java/JavaVirtualMachines/1.7.0jdk'

what's the different? why there are two?

like image 679
iLeoDo Avatar asked Dec 31 '25 10:12

iLeoDo


1 Answers

The /System/Library/Java/JavaVirtualMachines/1.6.0jdk is the JDK that Apple used to distribute with their operating system. They have since stopped providing a JDK and have left it up to the owner of the Java platform, Oracle, to provide the latest JDK and /Library/Java/JavaVirtualMachines/1.7.0jdk is the JDK provided by Oracle.

The difference is simply the version and vendor (provider) of the JDK. It's perfectly fine to have multiple JDKs on your system.

like image 156
Marc Baumbach Avatar answered Jan 02 '26 01:01

Marc Baumbach



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!