You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the native build with -Dquarkus.native.container-build=true also fails on windows even though the native-build would be executed inside a linux docker container.
Expected behavior
The build should work inside a linux docker container
Actual behavior
Following error is thrown:
* What went wrong:
Execution failed for task ':devtools:machine-learning:labeling-server:quarkusBuild'.
> io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Failed to build native image
at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:281)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at java.base/java.lang.Thread.run(Thread.java:833)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.UnsupportedOperationException: Windows AWT integration is not ready in native-image and would result in java.lang.UnsatisfiedLinkError: no awt in java.library.path.
at io.quarkus.deployment.pkg.steps.NativeImageBuildStep$NativeImageInvokerInfo$Builder.build(NativeImageBuildStep.java:883)
at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:249)
... 11 more
I will change io.quarkus.dev.console.QuarkusConsole.IS_WINDOWS usage to something else so as it takes into account nativeConfig.isContainerBuild() and test on Windows Podman and Windows Docker Desktop.
Describe the bug
Running the native build with
-Dquarkus.native.container-build=true
also fails on windows even though the native-build would be executed inside a linux docker container.Expected behavior
The build should work inside a linux docker container
Actual behavior
Following error is thrown:
How to Reproduce?
io.quarkus:quarkus-awt
Output of
uname -a
orver
No response
Output of
java -version
17
GraalVM version (if different from Java)
17
Quarkus version or git rev
2.13.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)gradlew 7.5.1
Additional information
No response
The text was updated successfully, but these errors were encountered: