javafx - How to create runnable jar with images and sounds in Eclipse? -


i'm trying create jar in eclipse. project contains images , sounds. have resources folder more folders, when run jar without images.

the project structure:

enter image description here

example:

btserver.setgraphic(new imageview(new image("file:resources/buttonimages/server.png",100,100,false,false))); 

make sure when exporting runnable jar file, selecting 'extracting required libraries generated jar'.

the other workaround put resources folder workspace in same file location jar file.

hope helps


Comments

Popular posts from this blog

elasticsearch python client - work with many nodes - how to work with sniffer -

angular - Is it possible to get native element for formControl? -

Upload file with tags through OwnCloud or NextCloud API -