I'm trying to deploy a JavaFX application with Eclipse/Ant + InnoCompiler. I'm able to set an icon for the stage and it is correctly visualized on the application bar when I run the application from Eclipse. However when I deploy the app and I install it, the stage icon is replaced by an horrible java gray icon. I want to remark that the installer icon (set by Inno script) works great. How can I fix it?
The icon is set with:
topStage.getIcons().add(new Image(getClass().getResourceAsStream("css/myImage.png")));
Thanks in advance.