简体   繁体   中英

How to jar a javafx application in eclipse which uses a css stylesheet

i have a javafx application which uses a css stylesheet to set the background of the applciation and the effects on the buttons.

When i try to export this javafx application to a runnable jar in eclipse,the jar file does not contain the css styles sheet and images needed.

I have tried putting the css and images inside the jars manually but no luck

Any help will be appreciated.

thanks

You should use the JavaFX packager support else you won't be able to run the jar because JavaFX is not on the classpath!

I'd suggest you use e(fx)clipse and its support for export as shown in the tutorial 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM