Kimmy
Kimmy

Reputation: 4049

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

Upvotes: 0

Views: 1129

Answers (1)

tomsontom
tomsontom

Reputation: 5897

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

Upvotes: 0

Related Questions