Skip to main content

a C++ code generator for calling Java from C++/Python

Project description

For the changes since earlier releases, see:

http://svn.osafoundation.org/pylucene/trunk/jcc/jcc/CHANGES

JCC is a C++ code generator for producing the glue code necessary to call into Java classes from CPython via Java’s Native Invocation Interface (JNI).

JCC generates C++ wrapper classes that hide all the gory details of JNI access as well Java memory and object reference management.

JCC generates CPython types that make these C++ classes accessible from a Python interpreter. JCC attempts to make these Python types pythonic by detecting iterators and property accessors. Iterators and mappings may also be declared to JCC.

JCC has been built on Python 2.3, 2.4, 2.5 and 2.6 and has been used with various Java Runtime Environments such as Sun Java 1.4, 1.5 and 1.6, Apple’s Java 1.4 and 1.5 on Mac OS X and open source Java OpenJDK 1.7 builds.

JCC is known to work on Intel and PowerPC Mac OS X 10.3, 10.4 and 10.5, Ubuntu Linux Dapper, Feisty and Gutsy, Sun Solaris Express, Windows 2000 and Windows XP.

JCC is written in C++ and Python. It uses Java’s reflection API to do its job and needs a Java Runtime Environment to be present to operate.

JCC is built with distutils or setuptools:

python setup.py build
sudo python setup.py install

Setuptools is required to build JCC on Python 2.3.

Except for Mac OS X - where Apple’s Java comes pre-installed in a known framework location - JCC’s setup.py file needs to be edited before building JCC to specify the location of the Java Runtime Environment’s header files and libraries.

The svn sources for JCC are available at:

http://svn.osafoundation.org/pylucene/trunk/jcc/jcc/

For more information about JCC see:

http://svn.osafoundation.org/pylucene/trunk/jcc/jcc/README http://svn.osafoundation.org/pylucene/trunk/jcc/jcc/INSTALL

JCC comes with an Apache 2.0 copyright license:

http://www.apache.org/licenses/LICENSE-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

JCC-2.0.tar.gz (68.7 kB view details)

Uploaded Source

File details

Details for the file JCC-2.0.tar.gz.

File metadata

  • Download URL: JCC-2.0.tar.gz
  • Upload date:
  • Size: 68.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for JCC-2.0.tar.gz
Algorithm Hash digest
SHA256 7bd723c12d3e307a46a03b1d341181f0efb55684c1ef9809003cf7a45c439cc0
MD5 38dae8464dc6a523a9f39e30193e54bd
BLAKE2b-256 a499515288eb7ba356b9ae35aaacb06bd0a5d8f7555950dfb10e95b74d4f9048

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page