Java 8 and Eclipse on OS X Mavericks

2019-07-07 13:13发布

问题:

I want to play a bit with the recently released Java 8 on OS X Mavericks, but have problems configuring the compiler compliance level to anything beyond 1.7.

I tried this with a recent Luna build (4.4.0M6) as well as with Kepler (4.3 SR2), patched with this.

What am I doing wrong?

回答1:

I think I got it right now. I just re-installed the patch from here and now 1.8 is shown as compiler level.

I think while the "About" dialog showed me that the patch was installed, it probably wasn't done properly, because it updated other plugins / the IDE to SR2 at the same time.

Anways, this is solved.



回答2:

I had some problems getting Java SE 8 to work in Eclipse too. I followed the Instructions in the Eclipse wiki for the Eclipse Kepler SR2 (4.3.2) version.

After that, I could choose version 1.8 instead of 1.7, which solved the problem. The instructions seem to link to the same patch you used, though, but maybe you missed something important.