AWT ERR
See original GitHub issueDescribe the bug
Compilation exception after adding quarkus-awt
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-awt</artifactId>
</dependency>
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.840 s
[INFO] Finished at: 2022-11-19T10:42:42+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:2.14.0.Final:build (default) on project demo1: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Failed to build native image
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:285)
[ERROR] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:578)
[ERROR] at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
[ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
[ERROR] at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
[ERROR] at java.base/java.lang.Thread.run(Thread.java:1589)
[ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] 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.
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep$NativeImageInvokerInfo$Builder.build(NativeImageBuildStep.java:888)
[ERROR] at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:253)
[ERROR] ... 9 more
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
Expected behavior
How to use DaskTop in quarkus
Desktop.getDesktop().browse(uri);
Actual behavior
No response
How to Reproduce?
No response
Output of uname -a
or ver
No response
Output of java -version
19
GraalVM version (if different from Java)
22.3
Quarkus version or git rev
2.14
Build tool (ie. output of mvnw --version
or gradlew --version
)
No response
Additional information
No response
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
What is this java.awt.event error? - Stack Overflow
The error message is telling you, "hey while running some code on the event dispatch thread, I encountered a NullPointerException" in your code....
Read more >13: AWT Exceptions and Errors - Java AWT Reference [Book]
AWTError is a subclass of Error that is used when a serious run-time error has occurred within AWT. For example, an AWTError is...
Read more >AWTError (Java Platform SE 7 ) - Oracle Help Center
Constructs an instance of AWTError with the specified detail message. Method Summary. Methods inherited from class java.lang.Throwable · addSuppressed, ...
Read more >[Chapter 13] AWT Exceptions and Errors
This exception is used when you try to do something with a Component that is not yet appropriate. AWTError is a subclass of...
Read more >Java AWT error when installing IBM Sterling Connect:Direct ...
During installation of IBM Sterling Connect:Direct 4.1 on Linux the following error occurs: Exception in thread "main" java.lang.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@TheBlindM my reply from https://github.com/oracle/graal/issues/5445#issuecomment-1317030624 stands.
We are operating in a headless mode. Your usage:
is not in the scope of what we support in Quarkus native at the moment. You can do a text user interface though, e.g. spit a link to to terminal the user can click on and have a browser started. You can leverage Picoli to have a quite rich text user interface experience… Opening a file can be done via a web form on that locally served page.
You can submit a feature request and we can follow up eventually alongside GraalVM’s rich gui capabilities developments.
Ok, I understand