Questions tagged [jcc]

C++ code generator of wrappers for Java libraries

JCC is a C++ code generator that produces a C++ object interface wrapping a Java library via Java's Native Interface (JNI). JCC also generates C++ wrappers that conform to Python's C type system making the instances of Java classes directly available to a Python interpreter.

When generating Python wrappers, JCC produces a complete Python extension module via the distutils or setuptools packages.

Welcome to JCC, PyLucene's code generator

32 questions
14
votes
4 answers

What can SQL CODE -104 (error) represent?

I am executing an SQL query via jcc to run a report. When I opened the error log file for the program and examined the SQL query, everything seems to be fine (There are no extra or missing brackets, commas, etc and the syntax is good) however when I…
Bernice
  • 2,552
  • 11
  • 42
  • 74
7
votes
2 answers

Installing PyLucene on a Mac

I would like to be able to use pyLucene on my Mac. The instructions have me hopelessly lost because each instruction for setting up or making requires that I do something before it, and it's hard to know where to start and what to do from what…
6
votes
3 answers

Windows build for PyLucene+JCC on python 2.6

Where can I download a PyLucene+JCC Windows build compiled for python 2.6? Jose
Jose Bastos
  • 111
  • 2
  • 3
5
votes
3 answers

Python 2.6 + JCC + Pylucene issue

Greetings, I'm trying to use pylucene in Python 2.6. Since there's no windows build for 2.6, I try to build the source code. First of all, I build JCC (windows, using cygwin) python setup.py build running build running build_py [...] building 'jcc'…
Jose Bastos
  • 111
  • 2
  • 3
5
votes
2 answers

writing a custom anaylzer in pylucene/inheritance using jcc?

I want to write a custom analyzer in pylucene. Usually in java lucene , when you write a analyzer class , your class inherits lucene's Analyzer class. but pylucene uses jcc , the java to c++/python compiler. So how do you let a python class…
Alex Brooks
  • 5,133
  • 4
  • 21
  • 27
3
votes
2 answers

jcc.initVM() doesn't return when mod_wsgi is configured as daemon mode

I am using mod-wsgi with django, and in django I use pylucene to do full text search. While mod-wsgi is configured to be embedded mode, there is no problem at all. But when mod-wsgi is configured to be daemon mode, the apache just gets stuck, and…
Ross
  • 2,033
  • 4
  • 19
  • 19
2
votes
1 answer

SQL - UPPER function in DB2 not working

I am connecting to a DB2 database (DB2 v9.7.400.501) from my Java web application using the IBM DB2 Type 4 driver (db2jcc4.jar). When I try to execute an SQL statement like this, SELECT * FROM USERS WHERE UPPER(USERNAME) = UPPER('testuser'); I get…
duncanportelli
  • 3,161
  • 8
  • 38
  • 59
2
votes
1 answer

import jcc, DLL load failed

I build JCC 2.12. Next, I tried to import jcc but I get this error message: ImportError: DLL load failed: The specified module could not be found. First I think about jvm.dll, and I put direct link to jcc\windows.py def…
alex
  • 521
  • 1
  • 5
  • 17
2
votes
1 answer

Trying to install lucene for python. First need to install jcc. When building setup.py for jcc, I get the error ld: library not found for -ljava

Trying to install lucene for python. First need to install jcc. When building setup.py for jcc, I get the error ld: library not found for -ljava Entire error can be found [here][1]: this is code
2
votes
4 answers

ImportError: no module named _jcc

I'm trying to install pylucene on python 2.7 (windows) since four days. It requires JCC to build and install. After thousands and thousands different errors I handled myself, at last JCC sucessfully builded and installed. At least, that was what I…
Teoman Unay
  • 21
  • 1
  • 2
2
votes
0 answers

How to create a Java String object in a Python script after using JCC to create an interface to a Java Library?

I have a Java library which I have created a CPython interface using JCC from Apache. When I do the following, the "String" object appears, so I suppose there is a suitable interface to the String object ("p" is the library I load using "import…
dagilpe
  • 147
  • 1
  • 14
1
vote
2 answers

pylucene: install error

UPDATE question: Thanks Favoretti! I installed jcc using apt-get and the makefile under pylucene ran a little bit and threw a java error and I dont have a clue. Here it is. Can you please let me know what error it is? While loading…
Zenvega
  • 1,974
  • 9
  • 28
  • 45
1
vote
0 answers

Error importing JCC. Cannot find libjava.so

I'm having an issue trying to install PyLucene. I'm running the Makefile provided, but am getting an error at line 385: Traceback (most recent call last): File "/home/89772/anaconda3/lib/python3.7/runpy.py", line 183, in _run_module_as_main …
John Brown
  • 53
  • 5
1
vote
1 answer

InvalidArgsError in PyLucene trying to create FSDirectory

So I am trying to implement a basic index writer in PyLucene. I am usually a java dev but due to technical constraints I am doing this in python or else this wouldn't be a problem. I am following the sample in the PyLucene Tarball but import…
ford prefect
  • 7,096
  • 11
  • 56
  • 83
1
vote
2 answers

Is there a JDBC 4.1 driver for DB2?

Does DB2 (LUW) support JDBC 4.1? From where can I download this driver if it exist?
M. A. Kishawy
  • 5,001
  • 11
  • 47
  • 72
1
2 3