I got this error when installing Eclipse on a new MacBook with macOS Sierra, version 10.12.3, which, apparently, does not have ANY java installation. I put the problem into the problem by installing java version 1.8 of the JDK and then installed Eclipse after it without any problems.
i.e. before installation
MacBook-Pro:$ java -version No Java runtime present, requesting install.
and after installation
MacBook-Pro:$ java -version java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
TL; DR; This error may indicate that you do not have Java, and you can fix the installation of the latest version of Java instead of the "old version"
Mark Chackerian Feb 22 '17 at 19:26 2017-02-22 19:26
source share