Hi Erik,

On Wed, 16 Dec 2020, Erik Groeneveld - Seecr wrote:

Hi Andy,

Sorry for my late response.

I tried your suggestions with the latest JCC (trunk) and now it works. We
are using Java 8 in this case, and the concatenation of classpaths still
works. That is very fortunate, because that makes our Python extensions
independent.

If you upgrade to a more recent java version, you just need to call initVM() once after loading all the extensions you need for that run and pass initVM() their concatenated classpaths.

Andi..


Thank you for your efforts and the amount of time you put in JCC and
PyLucene!

Best regards,
Erik

--
Erik Groeneveld  ♦ seecr.nl ♦ +31 624 584 029


On Sat, Nov 28, 2020 at 4:22 AM Andi Vajda <va...@apache.org> wrote:


I now made it return an error when calling initVM() a second time and
updating the VM's classpath failed because the system class loader is not
an
instance of java.net.URLClassLoader.

Instead, call initVM() only once but with all the module.CLASSPATH strings
set into its classpath keyword argument:

   import os, mod1, mod2, mod3

   mod3.initVM(classpath=os.pathsep.join([mod1.CLASSPATH, mod2.CLASSPATH,
                                          mod3.CLASSPATH]))

Andi..


--
Seecr helpt informatieprofessionals met het consistent integreren en
verbinden van decentrale metadata zodat zij zich helemaal kunnen focussen
op de inhoud.
?? Meer weten? Kijk op seecr.nl <https://seecr.nl>.

Reply via email to