fxlauncher icon indicating copy to clipboard operation
fxlauncher copied to clipboard

controlsfx not found for custom ui

Open roberthtux opened this issue 6 years ago • 3 comments
trafficstars

Hi! I've trying to make a project with a custom ui launcher but not in separated project, so i've the project structure like: image All is ok, but when run java -jar fxlauncher.jar shows image Can you help me, how to do this? I've a project where i need load a spring context and load init files. Thanks.

roberthtux avatar Mar 02 '19 20:03 roberthtux

It's not a good idea to have dependencies in the custom launcher ui. When you run java -jar fxlauncher.jar, the dependencies will not be on the classpath, hence the error message. You can of course choose to repackage fxlauncher.jar to include your depdendencies, or you could set up a classpath containing both fxlauncher.jar and the dependencies when you launch it from the command line (java -cp).

edvin avatar Mar 02 '19 21:03 edvin

Thanks foy your answer. All dependendencies are included in fxlauncher, and the CustomLauncherUI too. That is correct? How can i run launcher.jar (with dependencies included) and a CustomerLauncherUi in the same launcer.jar? this is posible? Firstly, I tried to run fxlauncher where my project launches a preloader (medusa preloader) but when launcher ends, the preloader not is show, therefore I thought in CustomLauncherUI.

roberthtux avatar Mar 06 '19 12:03 roberthtux

There are several build tools that can help you with embedding other classes inside a single jar, for example the fatjar maven plugin. Not sure I understand your other questions, sorry.

edvin avatar Mar 06 '19 12:03 edvin