And then it goes to explain that one should install java 8 JDK (NOT just the JRE as I had done). Then I found this post in the eclipse forums, which stated at the end (comment added by Eric Rizzo on Tue, 14 February 2017 21:56) that this is not an Eclipse message, but rather an OS message, and that one should NOT do that as apple messed things up with that patch. So I followed the instructions here to remove what I had installed for the alleged java 6 issue.
I kept thinking that the problem was the java version, it was somehow still using java 6 (which I had installed due to the initial prompt). Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)Īfter all of this, however, I get the same "Failed to find a Main Class" error on the dialog as reported initially here, and the same "UnsupportedClassVersionError" on the CLI that I had when the system was still on java 6, so now I am still stuck and out of ideas. Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Eclipse downloads are not password protected. A full JDK needs to be installed on the Mac.
Installing any JRE will not eliminate this problem. The solutions I found for that were not feasible in MacOS starting in version El Capitan, and I am on High Sierra, so I followed the instructions in this post to fix that, and it worked, now I get: java -version On more recent versions of the Mac, if you don't have a full JDK of an appropriately high version installed, the OS produces this bogus message.
When googling that, the answers said that the reason for that is that the Oracle installer does not update the symlink in /usr/bin, which seemed to be confirmed by the fact that running java -version returned this: java -version This may be a silly question but should I use the 32 bit or 64 bit version of Eclipse on my Mac Im fully up to date with Snow Leopard and all patches and I have a pretty recent iMac (30', Dual Core, 3GB) I thought that Java on Snow Leopard was now 64 bit only so cant understand why there is a 32bit download. Then I tried to run from the command line, and got this error: Exception in thread "main" : org/eclipse/equinox/launcher/Main : Unsupported major.minor version 51.0 When running eclipse again I started getting this error. Then I also installed the latest JRE (jre-8u171-macosx-圆4 as of yesterday). I first installed eclipse Photon, which when starting up prompted me to install Java 6, which I did from I have the same issue, but on my MacBookPro.