eureka19
eureka19

Reputation: 3070

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.

I already have a java 8 update 65 installed on my mac.

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).

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

Where it might have got installed?

I'm sure it has got installed as I got the message saying the installation is successful. enter image description here

Upvotes: 1

Views: 1079

Answers (2)

user1880078
user1880078

Reputation: 1

I did this and then no more that error message:In terminal: export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk-22.jdk/Contents/Home"

Upvotes: 0

eureka19
eureka19

Reputation: 3070

I had installed the JRE instead of JDK and that was the reason I was not able to locate the installed JDK.

Remember to make sure that you are downloading the JDK and not the JRE.

Upvotes: 1

Related Questions