I am on OS X Yosemite 10.10.3
I am running XCODE and receive the error
Error: JAVA_HOME is not defined correctly.
We cannot execute /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java
I have looked at Where is JAVA_HOME on OSX Sierra (10.12), El Captain (10.11), Yosemite (10.10), Mavericks (10.9), Mountain Lion (10.8) or OSX Lion (10.7)? and tried all of the suggestions for the JAVA_HOME variable.
I have tried uninstalling and reinstalling java and the jdk from Oracle
java -version
gives me
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
I have made sure that in all the suggestions I replaced the version # with my correct version #.
Everyone that has made a response seems to have a CurrentJDK
within /System/Library/Frameworks/JavaVM.framework/Versions/.
I only have A
and Current
I am wondering if this is part of the reason I am getting the error, and how would I fix that?