Closed BugsBountyHunter closed 2 years ago
@DEV-A7med
Hi,
I found this topic on StackOverflow, and the first answer mentions a need to set a java.awt.headless
option in your SpringBoot project ... take a look at that post and see if you can work the solution into your project.
This post might also be of help.
Mike
@DEV-A7med try calling Java with the below option. This issue is due to Spring setting this option within the framework since Spring is typically meant to be run in a headless environment (think web server). This isn't an issue specific to FXTrayIcon, but I will leave the issue open in case you are able to post how to resolve it and help others if they choose to use a setup similar to yours.
-Djava.awt.headless=false
Thank you for helping @EasyG0ing1, @dustinkredmond, Now I create a new repo with two branches:
Now feel free if you need to add my sample to your sample code to help others
Springboot... I looked at that once ... then I didn't ... I've been perhaps putting off the inevitable.
When I'm using FXTrayIcon with JavaFX application that's work fine but now I need to run my project as spring-boot fx project I follow instructions here to run the spring-boot project as FX project https://blog.jetbrains.com/idea/2019/11/tutorial-reactive-spring-boot-a-javafx-spring-boot-application/
but when I used FXTrayIcon get me this exception message
I ask about what's capabilities to integrate fxtrayicon with spring-boot-fx