简体   繁体   中英

JavaVirtualMachines still says “1.6.0.jdk” after installing Java 7 JDK on OS X

I am trying to download the Java 7 jdk for Android Studio on my mac because "Android-21 requires compiling with JDK 7"

I have downloaded and installed the Java 7 jdk numerous times and restarted my laptop, but when I go to check the jdk in /System/Library/Java/JavaVirtualMachines it says 1.6.0.jdk

Correct me if I'm wrong, but 1.6.0 is the Java 6 jdk, right?

and is there a way to install it manually?

It is not in /System/Library/Java/JavaVirtualMachines

But in Library/Java/JavaVirtualMachines

If you take the folder structure at your root There will be two folders 1. System 2. Library

I am talking about the 2nd one. Not the Library folder in Systems folder

Use this command on terminal to find your JDK location

/usr/libexec/java_home 

我的Mac上装有Java 7,但它位于/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM