I'm trying build PyLucene off of Lucene's current trunk, on OS X
10.5.6.
So I first did "ant package-tgz" in a clean Lucene checkout, to get a
tgz with all interesting JARS (side note: it'd be nice if JCC could
get the JARs out of the tgz or zip file).
Then I tried to run the example at
http://lucene.apache.org/pylucene/jcc/documentation/readme.html but
hit a few initial challenges:
* Where does extensions.jar come from? (I'm trying to run jcc, and
apparently I need to point it to extensions.jar).
* I'm getting a cryptic error from JCC when it tries to init the
JVM (I'm on OS X 10.5.6):
_NSJVMLoadLibrary: NSAddLibrary failed for /System/Library/Frameworks/
JavaVM.framework/Versions/CurrentJDK/Libraries/libjvm.dylib
JavaVM FATAL: Failed to load the jvm library.
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/runpy.py", line 95, in run_module
filename, loader, alter_sys)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/runpy.py", line 52, in _run_module_code
mod_name, mod_fname, mod_loader)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/runpy.py", line 32, in _run_code
exec code in run_globals
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/JCC-2.1-py2.5-macosx-10.3-i386.egg/jcc/
__init__.py", line 29, in <module>
import jcc.__main__
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/JCC-2.1-py2.5-macosx-10.3-i386.egg/jcc/
__main__.py", line 5, in <module>
cpp.jcc(sys.argv)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/JCC-2.1-py2.5-macosx-10.3-i386.egg/jcc/
cpp.py", line 343, in jcc
vmargs='-Djava.awt.headless=true')
ValueError: An error occurred while creating Java VM
I'm using 1.6.0 Java VM. Maybe I'm supposed to use 1.5?
Mike