onnxruntime-extensions/java
Edward Chen 2aeca72714
Fix Android CI build issues (#587)
* Update JDK version to 17 in ci.yml

* Update com.diffplug.spotless to 6.22.0.

* Update to JDK 17 in packaging pipelines.

* Fix pool name.
2023-10-30 17:40:48 -07:00
..
gradle/wrapper Upgrade gradle wrapper to unblock android CI (#491) 2023-07-17 11:15:46 -07:00
src Gradle wrapper security updates (#381) 2023-03-16 11:06:00 -07:00
README.md Update whisper model test cases and e2e example (#496) 2023-07-21 15:27:02 -07:00
build-android.gradle fix the android packaging issue (#497) 2023-07-24 17:18:49 -07:00
build.gradle Fix Android CI build issues (#587) 2023-10-30 17:40:48 -07:00
gradle.properties Upgrade gradle wrapper to unblock android CI (#491) 2023-07-17 11:15:46 -07:00
gradlew Add build.py to make it easier for developers to build different variants (#318) 2023-01-02 14:55:31 +10:00
gradlew.bat Upgrade gradle wrapper to unblock android CI (#491) 2023-07-17 11:15:46 -07:00
settings-android.gradle Initial Java API for the JAR package. (#292) 2022-10-04 16:22:28 -07:00
settings.gradle Initial Java API for the JAR package. (#292) 2022-10-04 16:22:28 -07:00

README.md

ONNXRuntime-Extensions Java/Android API and Package

This java and Android API and packaging principles were inspired by the https://github.com/microsoft/onnxruntime/tree/main/java, and openly share credits for API with the contributors in onnxruntime repo.


Building


Tools required

  1. install visual studio 2022 (with cmake, git, desktop C++)
  2. OpenJDK: https://docs.microsoft.com/en-us/java/openjdk/download (OpenJDK 11.0.15 LTS)

Build command

./build.sh -DOCOS_BUILD_JAVA=ON

and find onnxruntime-extensions-0.5.0.jar at out/$OS/$CMake_BUILD_TYPE/java/build/libs


Usage

There is a Java example project checked in tutorial folder, demo4j which provide a showcase how extensions package works with ONNXRuntime's Java API