Skip to content

Support pure JVM JAR compilation and packaging for desktop JVM#20761

Open
RanjithRagavan wants to merge 2 commits into
pytorch:mainfrom
RanjithRagavan:support-jvm-jar
Open

Support pure JVM JAR compilation and packaging for desktop JVM#20761
RanjithRagavan wants to merge 2 commits into
pytorch:mainfrom
RanjithRagavan:support-jvm-jar

Conversation

@RanjithRagavan

@RanjithRagavan RanjithRagavan commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

This PR adds support for compiling and packaging the ExecuTorch Java/Kotlin APIs as a standard JVM JAR package targeting desktop platforms (Linux, macOS, Windows). It resolves #16422 by decoupling the codebase from Android-specific APIs (using reflection to delegate android logging) and adding a new :executorch_jvm Gradle project. In addition, the JNI CMake configuration has been expanded to support building on desktop hosts.

cc @kirklandsign @cbilgin

@pytorch-bot

pytorch-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20761

Note: Links to docs will display an error until the docs builds have been completed.

❌ 5 New Failures, 1 Pending

As of commit adc3d15 with merge base b1ef9a5 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 7, 2026
@RanjithRagavan

Copy link
Copy Markdown
Contributor Author

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot Bot added the release notes: none Do not include this in the release notes label Jul 7, 2026
@nil-is-all nil-is-all added the module: android Issues related to Android code, build, and execution label Jul 10, 2026
@nil-is-all

Copy link
Copy Markdown
Contributor

Hi @RanjithRagavan, thank you for the PR. Could you address the CI failures?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: android Issues related to Android code, build, and execution release notes: none Do not include this in the release notes

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

java linux cannot work , we need executorch java jar format package ,please support

3 participants