bug#81211: #81211 31.0.90; Android build fails with current Java compilers

Sean Whitton <[email protected]> Wed, 05 Aug 2026 11:27:01 +0100
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
unblock 81521 by 81211
thanks

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.

Eli and I discussed it and we think that we probably don't need to block
the release on this, if a fix is not forthcoming.

So I've added some text to etc/PROBLEMS and am unblocking.

-- 
Sean Whitton