简体   繁体   中英

No Java 1.8 compiler compliance level when running Android Bundle/Eclipse Juno under Oracle JDK 8

I am using Android Bundle/Eclipse Juno under Oracle JDK 8 as the default Java on my Fedora 21 KDE box. There is no Java compiler compliance level 1.8 in settings. When I opened the Eclipse compiler compliance level was set to 1.4 and it goes up to 1.8. Is there something wrong here?

Eclipse juno doesn't magically gain Java 1.8 compiler support because you install Java 8. Juno was released in June 2012 while Java 8 was released March 2014 . The first version of eclipse with Java 8 support was Kepler (through an after-release JDT update); Luna supports Java 8 out of the box.

In addition to what Elliot wrote in his Answer , you won't be able to run Java 8 code on Android. Android platforms only support linguistic features up to Java 7, and even then the support is not complete.

Reference:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM