K
K
kirawa2016-03-02 17:12:05
Java
kirawa, 2016-03-02 17:12:05

How to build working jar file of javaFx project?

I work in Intellij Idea. The project has libraries jquery, css, etc. It's just that everything is fine at startup, but if I compile a jar file, then there are no styles in it and javascript does not work

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Malyarov, 2016-03-02
@Konstantin18ko

Maven! You specify dependent libraries in a patch class. And in the resources folder you throw css, jquery. When building, include the necessary folders. This is done in file -> project structure.

K
kirawa, 2016-03-02
@kirawa

Evgeny Kornachev :
Here is a screenshot of the project structure. Probably I need to somehow include these files in a different way, and not directly from html like mine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question