简体   繁体   中英

java 7 install on mac broken/ incomplete?

I installed java 7 (both the JDK and the JRE) on a MAC (OSX 10.10.3). java preferences shows the installed version correctly (1.7.0_80) as does the output of "java -version". However it seems some path/ environment variables are not updated since /System/Library/Frameworks/JavaVM.framework/Versions is still showing only up to 1.6 and not 1.7. Programs like Eclipse that are specifically looking for Java 7 or later in this path are hence failing to run.

Any suggestions ?

It's in a different location now: /Library/Java/JavaVirtualMachines/ .

For instance, on my machine:

$ ls /System/Library/Frameworks/JavaVM.framework/Versions
1.4  1.4.2  1.5  1.5.0  1.6  1.6.0  A  Current  CurrentJDK

$ ls /Library/Java/JavaVirtualMachines/
jdk1.7.0_67.jdk  jdk1.8.0_20.jdk  jdk1.8.0_45.jdk

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