On Wed, 10 Feb 2010, Roman Chyla wrote:
I am able to reproduce it again (please see below). My problem is
probably two packages with lucene (I started to play with PyLucene
only recently, and the older code is there doing other work).
The lucene is a PyLucene (lucene 2.9.1) and pyjama contains GATE and
also my own lucene (2.9.1) - so, effectively, I have two lucenes
- but in the pyjama package, the jcc wrapper was built only for my
own classes (that talk to java-lucene behind the scene)
- when ClassNotFoundException happens, java is apparently searching
inside pyjama's jars (and the classes are only in lucene's jars)
So that brings me to question like if it is safe to mix python
packages that contain the same java classes? Or not recommended at
all?
Hmm, not sure. I've never tried that. It seems a little unsane to me.
Where this may cause trouble is with the different sets of wrappers jcc has
generated for the same classes. I don't expect them to be usable
interchangeably since which methods get wrapped depends on the transitive
closure of dependencies that was computed during generation.
That being said, I don't see why the classes would not be found in the first
place.
What are the _exact_ jcc invocations you used to build both extensions ?
Andi..