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:
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
Post a Comment