This may be a question for a JCC mailing list, but...
I've got a big Java library I'd like to wrap with JCC. It's a small
jar file which depends on a huge poorly-engineered library of various
cruft from lots of sources. Works fine if you just run "java" on it,
but when I try to run JCC on it, I get things like
% python -m jcc --jar GoodStuff.jar --jar Support.jar
Traceback (most recent call last):
File "/usr/lib/python2.5/runpy.py", line 95, in run_module
filename, loader, alter_sys)
File "/usr/lib/python2.5/runpy.py", line 52, in _run_module_code
mod_name, mod_fname, mod_loader)
File "/usr/lib/python2.5/runpy.py", line 32, in _run_code
exec code in run_globals
File
"/usr/lib/python2.5/site-packages/JCC-1.7-py2.5-linux-i686.egg/jcc/__init__.py",
line 28, in <module>
cpp.jcc(sys.argv)
File
"/usr/lib/python2.5/site-packages/JCC-1.7-py2.5-linux-i686.egg/jcc/cpp.py",
line 332, in jcc
cls = env.findClass(className.replace('.', '/'))
jcc.cpp.JavaError: java.lang.VerifyError: (class:
org/apache/html/dom/HTMLElementImpl, method: <init> signature:
(Lorg/apache/html/dom/HTMLDocumentImpl;Ljava/lang/String;)V) Incompatible
argument to function
%
Sure enough, Support.jar (a 28MB jar file containing all sorts of
libraries) does indeed include a version of
org.apache.html.dom.HTMLElementImpl, from some point in the past, but
it's not ever actually used by any of the code in GoodStuff.jar.
Can I turn off the verifier? Only use it in certain cases?
Bill
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev