bug#81211: #81211 31.0.90; Android build fails with current Java compilers
Sean Whitton <[email protected]>
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
Johan Myréen [28/Jul 9:49pm +03] wrote: >> >> In config.log, it says: >> >> configure:7961: checking whether the Java compiler works >> warning: [options] bootstrap class path not set in conjunction with >> -source 7 >> error: Source option 7 is no longer supported. Use 8 or later. >> error: Target option 7 is no longer supported. Use 8 or later. >> configure:7994: result: no > > > I managed to compile the Android version of Emacs with Java 11, which is an > LTS version, which happened to be the active version on my laptop. > > configure:7861: checking whether the Java compiler works > warning: [options] bootstrap class path not set in conjunction with -source > 7 > 1 warning > configure:7894: result: yes > > So the solution is to use an older version of Java. Version 11 seems to > support "-source 7", version 21 does not. According to Google the last > version to support -source 7 is Java 19, which is not an LTS version, but > Java 17 is. I think that we need to know that the Android port will compile with a version of Java that's supported for the next two years at a bare minimum. Preferably it would be much longer. Online I found that Java 17 will get security fixes until the end of September 2029. That would be good enough. However, I don't know whether that means security fixes for everyone (that make it into openjdk, for example) or just for paying customers. Can anyone shed any light on how these aspects of the Java ecosystem works? -- Sean Whitton