Re: Multiple .so extension sharing classes

2020-12-16 Thread Andi Vajda
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 ma

Re: Multiple .so extension sharing classes

2020-12-16 Thread Erik Groeneveld - Seecr
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. Thank you for your efforts

Re: Multiple .so extension sharing classes

2020-11-27 Thread Andi Vajda
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 ar

Re: Multiple .so extension sharing classes

2020-11-27 Thread Andi Vajda
Hi, I found several bugs here: - JCC with python3 using --import is broken. The code handling it is using a python2 function, os.path.walk(), that doesn't exist in python3. I fixed this in JCC's trunk just now. - JCC is dynamically adding paths to the classpath by calling URLC

Re: Multiple .so extension sharing classes

2020-11-27 Thread Andi Vajda
Thank you for the detailed description and code to reproduce. You may have found a bug here, I need to investigate. To be continued... Andi.. On Thu, 26 Nov 2020, Erik Groeneveld - Seecr wrote: L.S., We use PyLucene and JCC from the beginning and are very satisfied with it but we do have a

Multiple .so extension sharing classes

2020-11-26 Thread Erik Groeneveld - Seecr
L.S., We use PyLucene and JCC from the beginning and are very satisfied with it but we do have a problem. It appeared while using Lucene, but we brought it down to the following. (Everything is at https://github.com/ejgroene/jcc-howto.git, clone and run go.sh.) We have an extension pkg1 with: p