Navigation

  • index
  • next |
  • python-javabridge 1.0.12 documentation »

javabridge: running and interacting with the JVM from Python¶

The javabridge Python package makes it easy to start a Java virtual machine (JVM) from Python and interact with it. Python code can interact with the JVM using a low-level API or a more convenient high-level API.

The javabridge was developed for CellProfiler, where it is used together with python-bioformats to interface to various Java code, including Bio-Formats and ImageJ.

PyPI record

Documentation

GitHub repository

Bug reports

Contents:

  • Installation and testing
    • Install using pip
    • Install without pip
    • Dependencies
    • Running the unit tests
  • Hello world
  • Starting and killing the JVM
    • API
    • Without GUI (headless mode)
    • With GUI on the Java side
    • With GUI on both the Java side and the Python side
  • Executing JavaScript on the JVM
  • High-level API
    • Signatures
    • Wrapping Java objects using reflection
    • Operations on Java objects
    • Hand-coding Python objects that wrap Java objects
    • Useful collection wrappers
    • Reflection
    • Executing in the correct thread
    • Exceptions
  • The low-level API
  • Calling Python from Java
    • Maintaing references to Python values
  • Unit testing
  • For Javabridge developers
    • Build from git repository
    • Make source distribution and publish
    • Upload source distribution built by Jenkins

Indices and tables¶

  • Index
  • Search Page

Table Of Contents

  • javabridge: running and interacting with the JVM from Python
    • Indices and tables

Next topic

Installation and testing

This Page

  • Show Source

Quick search

Enter search terms or a module, class or function name.

Navigation

  • index
  • next |
  • python-javabridge 1.0.12 documentation »
© Copyright 2013, Broad Institute of MIT and Harvard. Created using Sphinx 1.3.6.