Closed collinsmith closed 7 years ago
Ikonli relies on metadata files located inside META-INF/services
in order to identify Ikon resolvers. These files must be merged using an specific strategy. I'm afraid that the fatJar
task you've defined does not take into account these files.
I'd suggest to use the shadow
plugin instead https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow
Got it, thanks. I was able to implement the changes and it works great now!
It looks like you're building a JavaFX application that can grow in complexity. I'd recommend you to use an application framework; you'll find a good list at https://github.com/mhrimaz/AwesomeJavaFX among other interesting JavaFX related projects.
Of course I'm biased but I'd suggest you to have a look at http://griffon-framework.org/ 😉
Ikonli relies on metadata files located inside
META-INF/services
in order to identify Ikon resolvers. These files must be merged using an specific strategy. I'm afraid that thefatJar
task you've defined does not take into account these files. I'd suggest to use theshadow
plugin instead https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow
thanks you tooooo much you helped me to very very very much .. i was spend about five days finding solve for above problem and getResources return null problem .. and now like magic all thing work fine .. good lock for all ;-)
Hi, I'm sorry if this is the improper channel to post this, but after following your guide, I'm getting stacktraces when trying to run my program from a fat jar with JavaFX. The program runs fine with all of the icons when started from my IDE, it's only when I try and run it from a fat jar that I see the problems. Is there something special I should be doing in order to have the icons included within a fat jar?
https://github.com/collinsmith/steamlinker https://github.com/collinsmith/steamlinker/releases https://github.com/collinsmith/steamlinker/blob/master/build.gradle