> On Oct 20, 2024, at 18:33, Prashant Saxena <animator...@gmail.com> wrote:
> 
> With jdk-17.0.12, all the lucene jars have been built successfully, however
> I'm missing these
> 4 files. Could you please tell me more about these files? These 4 files are
> required to build
> python extension as per the Makefile. Am I right?
> 
> antlr4-runtime-4.11.1.jar
> asm-7.2.jar
> asm-commons-7.2.jar
> hppc-0.9.1.jar

These are part of the Lucene source tree after Lucene got built by gradle and 
are necessary to build the python extension. 

> There are a total of 36 errors while building the extension, I'm posting
> only 4 here, rest of them are mostly similar ones. My environment is
> Windows 10 and Python 3.10
> 
>> Task :lucene:extensions:ecjLintMain
> ----------
> 1. ERROR in
> D:\projects\database\pylucene-9.7.0\lucene-java-9.7.0\lucene\extensions\src\java\org\apache\pylucene\analysis\PythonAnalyzer.java
> (at line 38)
>        public void finalize()
>        throws Throwable
>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You're building version 9.7.0 which is obsolete. 
In PyLucene 10.0.0, just released today, these finalize() methods, long 
deprecated, were finally replaced by phantom reference handling. I recommend 
you switch to version 10.0.0.

Andi..

> The method finalize() of type PythonAnalyzer should be tagged with
> @Override since it actually overrides a superclass method
> ----------
> ----------
> 2. ERROR in
> D:\projects\database\pylucene-9.7.0\lucene-java-9.7.0\lucene\extensions\src\java\org\apache\pylucene\analysis\PythonFilteringTokenFilter.java
> (at line 40)
>        public void finalize()
>        throws Throwable
>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> The method finalize() of type PythonFilteringTokenFilter should be tagged
> with @Override since it actually overrides a superclass method
> ----------
> ----------
> 3. ERROR in
> D:\projects\database\pylucene-9.7.0\lucene-java-9.7.0\lucene\extensions\src\java\org\apache\pylucene\analysis\PythonTokenFilter.java
> (at line 41)
>        public void finalize()
>        throws Throwable
>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> The method finalize() of type PythonTokenFilter should be tagged with
> @Override since it actually overrides a superclass method
> ----------
> ----------
> 4. ERROR in
> D:\projects\database\pylucene-9.7.0\lucene-java-9.7.0\lucene\extensions\src\java\org\apache\pylucene\analysis\PythonTokenizer.java
> (at line 40)
>        public void finalize()
>        throws Throwable
>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> The method finalize() of type PythonTokenizer should be tagged with
> @Override since it actually overrides a superclass method
> ----------
> ----------
> Prashant
> 
>> On Sun, Oct 20, 2024 at 8:39 PM Dawid Weiss <dawid.we...@gmail.com> wrote:
>> 
>> Use Java 17 for compilation. What you see is newer Java than gradle can
>> handle.
>> 
>> D.
>> 
>> On Sun, Oct 20, 2024 at 7:25 AM Prashant Saxena <animator...@gmail.com>
>> wrote:
>> 
>>> Hello,
>>> OS : Windows 10
>>> PyLucene : 9.7.0
>>> JDK : 23.0
>>> 
>>> Although I can download the binary distribution of version 9.7.0, I have
>>> decided to build it from scratch as
>>> I am new to javascript and lucene. It will help me learn.
>>> 
>>> 1. downloading and extracting pylucene
>>> 2. cd lucene-java-9.7.0
>>> 3. gradlew.bat assemble
>>> 
>>> Downloading https://services.gradle.org/distributions/gradle-7.6-bin.zip
>>> 
>>> 
>> ...........10%............20%...........30%............40%............50%...........60%............70%............80%...........90%............100%
>>> 
>>> Welcome to Gradle 7.6!
>>> 
>>> Here are the highlights of this release:
>>> - Added support for Java 19.
>>> - Introduced `--rerun` flag for individual task rerun.
>>> - Improved dependency block for test suites to be strongly typed.
>>> - Added a pluggable system for Java toolchains provisioning.
>>> 
>>> For more details see https://docs.gradle.org/7.6/release-notes.html
>>> 
>>> Starting a Gradle Daemon (subsequent builds will be faster)
>>> 
>>> FAILURE: Build failed with an exception.
>>> 
>>> * What went wrong:
>>> Could not open cp_settings generic class cache for settings file
>>> 'D:\projects\database\pylucene-9.7.0\lucene-java-9.7.0\settings.gradle'
>>> (C:\Users\rudra\.gradle\caches\7.6\scripts\db9c3q2cn4ry8xtriod5nz7j3).
>>>> BUG! exception in phase 'semantic analysis' in source unit
>>> '_BuildScript_' Unsupported class file major version 67
>>> 
>>> * Try:
>>>> Run with --stacktrace option to get the stack trace.
>>>> Run with --info or --debug option to get more log output.
>>>> Run with --scan to get full insights.
>>> 
>>> * Get more help at https://help.gradle.org
>>> 
>>> BUILD FAILED in 28s
>>> 
>> 

Reply via email to