You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Michael Wechner <mi...@wyona.com> on 2021/05/23 16:02:45 UTC

java 16 gradle not working

Hi

I just installed OpenJDK 16 and tried to build Lucene, but received the 
following error

* What went wrong:
Could not compile settings file 
'/Users/michaelwechner/src/apache/lucene/settings.gradle'.
 > startup failed:
   General error during semantic analysis: Unsupported class file major 
version 60

   java.lang.IllegalArgumentException: Unsupported class file major 
version 60

and searched for it and IIUC this is does not work

https://github.com/gradle/gradle/issues/13481

I think it would make sense to add a note to the README

https://github.com/apache/lucene

WDYT?

Thanks

Michael



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: java 16 gradle not working

Posted by Dawid Weiss <da...@gmail.com>.
You're welcome. I added one sentence to the readme that should help people
find the relevant resource. Switching to gradle 7 is not that trivial,
sadly.

Dawid

On Sun, May 23, 2021 at 11:31 PM Michael Wechner <mi...@wyona.com>
wrote:

> thank you very much for this link!
>
> Thanks
>
> Michael
>
> Am 23.05.21 um 22:08 schrieb Dawid Weiss:
>
>
> You do need to use Java 11-14 with the build itself for now. You can use a
> newer Java version to run tests, etc. - this is explained here:
> https://github.com/apache/lucene/blob/main/help/jvms.txt
>
> D.
>
> On Sun, May 23, 2021 at 6:02 PM Michael Wechner <mi...@wyona.com>
> wrote:
>
>> Hi
>>
>> I just installed OpenJDK 16 and tried to build Lucene, but received the
>> following error
>>
>> * What went wrong:
>> Could not compile settings file
>> '/Users/michaelwechner/src/apache/lucene/settings.gradle'.
>>  > startup failed:
>>    General error during semantic analysis: Unsupported class file major
>> version 60
>>
>>    java.lang.IllegalArgumentException: Unsupported class file major
>> version 60
>>
>> and searched for it and IIUC this is does not work
>>
>> https://github.com/gradle/gradle/issues/13481
>>
>> I think it would make sense to add a note to the README
>>
>> https://github.com/apache/lucene
>>
>> WDYT?
>>
>> Thanks
>>
>> Michael
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>>
>

Re: java 16 gradle not working

Posted by Michael Wechner <mi...@wyona.com>.
thank you very much for this link!

Thanks

Michael

Am 23.05.21 um 22:08 schrieb Dawid Weiss:
>
> You do need to use Java 11-14 with the build itself for now. You can 
> use a newer Java version to run tests, etc. - this is explained here:
> https://github.com/apache/lucene/blob/main/help/jvms.txt 
> <https://github.com/apache/lucene/blob/main/help/jvms.txt>
>
> D.
>
> On Sun, May 23, 2021 at 6:02 PM Michael Wechner 
> <michael.wechner@wyona.com <ma...@wyona.com>> wrote:
>
>     Hi
>
>     I just installed OpenJDK 16 and tried to build Lucene, but
>     received the
>     following error
>
>     * What went wrong:
>     Could not compile settings file
>     '/Users/michaelwechner/src/apache/lucene/settings.gradle'.
>      > startup failed:
>        General error during semantic analysis: Unsupported class file
>     major
>     version 60
>
>        java.lang.IllegalArgumentException: Unsupported class file major
>     version 60
>
>     and searched for it and IIUC this is does not work
>
>     https://github.com/gradle/gradle/issues/13481
>     <https://github.com/gradle/gradle/issues/13481>
>
>     I think it would make sense to add a note to the README
>
>     https://github.com/apache/lucene <https://github.com/apache/lucene>
>
>     WDYT?
>
>     Thanks
>
>     Michael
>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>     <ma...@lucene.apache.org>
>     For additional commands, e-mail: dev-help@lucene.apache.org
>     <ma...@lucene.apache.org>
>


Re: java 16 gradle not working

Posted by Dawid Weiss <da...@gmail.com>.
You do need to use Java 11-14 with the build itself for now. You can use a
newer Java version to run tests, etc. - this is explained here:
https://github.com/apache/lucene/blob/main/help/jvms.txt

D.

On Sun, May 23, 2021 at 6:02 PM Michael Wechner <mi...@wyona.com>
wrote:

> Hi
>
> I just installed OpenJDK 16 and tried to build Lucene, but received the
> following error
>
> * What went wrong:
> Could not compile settings file
> '/Users/michaelwechner/src/apache/lucene/settings.gradle'.
>  > startup failed:
>    General error during semantic analysis: Unsupported class file major
> version 60
>
>    java.lang.IllegalArgumentException: Unsupported class file major
> version 60
>
> and searched for it and IIUC this is does not work
>
> https://github.com/gradle/gradle/issues/13481
>
> I think it would make sense to add a note to the README
>
> https://github.com/apache/lucene
>
> WDYT?
>
> Thanks
>
> Michael
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>