Skip to content

CI fails to build Java bindings in Windows x64 QNN CI Pipeline on Win2022-GPU-A10 pool #29753

Description

@mcollinswisc

It looks like the last successful run of "Windows x64 QNN CI Pipeline / Windows x64 QNN CI Pipeline (shared_lib)" was on 930b764:
https://github.com/microsoft/onnxruntime/actions/runs/29048381456/job/86222587423

#29731 switched the pool for Windows x64 QNN CI Pipeline. It may be that this is pulling in an incompatible JDK version.

Looking at the logs for its commit:
https://github.com/microsoft/onnxruntime/actions/runs/29499730505/job/87625355397

The raw logs show (selected lines):

2026-07-16T13:05:22.2158922Z -- Found Java: C:/hostedtoolcache/windows/Java_Temurin-Hotspot_jdk/8.0.492-9/x64/bin/java.exe (found version "1.8.0.492")

and

2026-07-16T13:07:11.2537839Z   FAILURE: Build failed with an exception.
2026-07-16T13:07:11.2750224Z   
2026-07-16T13:07:11.3498474Z   * What went wrong:
2026-07-16T13:07:11.4346726Z   A problem occurred configuring root project 'onnxruntime'.
2026-07-16T13:07:11.5155907Z   > Could not resolve all artifacts for configuration ':classpath'.
2026-07-16T13:07:11.6027377Z   extension_set_heavy.cc
2026-07-16T13:07:11.6626081Z      > Could not resolve com.diffplug.spotless:spotless-plugin-gradle:7.2.1.
2026-07-16T13:07:11.6942102Z        Required by:
2026-07-16T13:07:11.7242140Z   file_name_saving_file_manager.cpp
2026-07-16T13:07:11.7269700Z            project : > com.diffplug.spotless:com.diffplug.spotless.gradle.plugin:7.2.1
2026-07-16T13:07:11.7480190Z   BUILD FAILED in 1m 40s
2026-07-16T13:07:11.9250525Z   Assembling D:\a\_work\onnxruntime\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm...
2026-07-16T13:07:12.1914251Z   file_writer.cpp
2026-07-16T13:07:12.3756087Z C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(237,5): error MSB8066: Custom build for 'D:\a\_work\_temp\build\RelWithDebInfo\CMakeFiles\c3707614be3987048148b0344bef9511\onnxruntime.jar.rule' exited with code 1. [D:\a\_work\_temp\build\RelWithDebInfo\onnxruntime4j.vcxproj]

And I'm seeing similar log messages in the failed check on #29728:
https://github.com/microsoft/onnxruntime/actions/runs/29509983398/job/87780661649?pr=29728

So, one possible diagnosis of the CI failures are that the Spotless plugin 7.2.1 is not compatible with JRE 8:
https://github.com/diffplug/spotless/blob/03d43ba2cdc81050e07b62646c08b22e39505368/plugin-gradle/README.md#requirements

Notably, other workflows that are on the "onnxruntime-github-Win2022-GPU-A10" pool and that are not failing have an action to explicitly set up the correct Java version:

But there is no Java setup action in https://github.com/microsoft/onnxruntime/blob/bf6aa0063d1c178c4a4d33ed6770425834147e2a/.github/workflows/windows_qnn_x64.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeapi:Javaissues related to the Java APIep:QNNissues related to QNN exeution providerplatform:windowsissues related to the Windows platform

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions