- OpenJDK (version depends on target OS)
- Ubuntu systems:
sudo apt-get install -y default-jdk
brew install openjdkTo build OpenVINO so that it includes this module, use the following CMake command:
cd <openvino_build>
cmake -DBUILD_java_api=ON -DOPENVINO_EXTRA_MODULES=<openvino_contrib>/modules <openvino_source_directory>
cmake --build . -j8Set OpenVINO environment variables:
source <openvino_install>/setupvars.shUse Gradle to build openvino-x-x-x.jar file with OpenVINO Java bindings:
cd <openvino_contrib>/modules/java_api
gradle buildUse import org.intel.openvino.*; for OpenVINO Java API.
- Install and enable the Gradle IntelliJ Plugin by navigating to Settings > Plugins. Search for the Gradle plugin and install it, if not already installed.
- Clone the repository
git clone https://github.com/openvinotoolkit/openvino_contrib.git
- To import the project into IntelliJ IDEA, select File > Open and locate the java api module in
<openvino_contrib>/modules/java_api.
See here for instructions on running tests.