Eclipse on MAC OS X sees different JAVA
Good afternoon, everyone.
Installed the latest JDK build (8u31) on 64-bit.
I downloaded Eclipse to 64-bit.
When trying to install, Eclipse returns an error:
Version 1.6.0_65 of the JVM is not suitable for this product. Version: 1.7 or greater required.
In the java-version terminal
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
In the system settings - > JAVA. Sees 1.8 correctly:
Please tell me where to change what to see the correct JAVA_HOME.
P.S. Looked at stackoverflow (https://stackoverflow.com/questions/24598465/eclipse-in-os-x-uses-different-version-of-java-than-cli/), did not find an answer. (
1