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

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

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -