简体   繁体   English

在我的mac上找不到已安装的jdk

[英]Cannot find the installed jdk on my mac

I have installed new version of java 8 on my mac(update 73) but i'm unable to get the installed path. 我在我的mac上安装了新版本的java 8(更新73),但我无法获得已安装的路径。

I already have a java 8 update 65 installed on my mac. 我的Mac上已经安装了Java 8更新65。

When I do /usr/libexec/java_home I get my current JDK's path ( /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home ) but not the new one( update 73 ). 当我执行/ usr / libexec / java_home时,我得到了当前的JDK路径( /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home ),但没有获得新路径( 更新73 )。

I also tried doing /usr/libexec/java_home -V to see all the versions of java installed on my system but I coudln't find the java update 73 我也尝试过/ usr / libexec / java_home -V来查看我系统上安装的所有java版本但是我找不到java更新73

Where it might have got installed? 它可能安装在哪里?

I'm sure it has got installed as I got the message saying the installation is successful. 我确定它已经安装,因为我收到消息说安装成功。 在此输入图像描述

I had installed the JRE instead of JDK and that was the reason I was not able to locate the installed JDK. 我安装了JRE而不是JDK,这就是我无法找到已安装的JDK的原因。

Remember to make sure that you are downloading the JDK and not the JRE. 请记住确保您正在下载JDK而不是JRE。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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