简体   繁体   中英

JavaFX - Deployed Application doesn't run on other PCs?

I have a problem with getting the Application to run on other People's machines.

I have tested a self contained and the normal .jar file. When i pass them to a friend of mine who has java installed, when he opens the .jar file, there is an Error: "Java Exception has occured".

When i run both the .jar and the .exe off the self contained one, both do work on my PC.

So the actual question is: Why isn't it working just like that?

Can't i just run JavaFX applications without installing the whole JDK?

Thanks for your help :)

Since Java 7 there exists the "javafxpackager", renamed to "javapackager" on Java 8 which uses some xml-configuration for generating your wanted "Installer"/distribution-package.

As this does not fit some peoples need, there exists a way to use maven: the javafx-maven-plugin , you can find some examples about the usage of that plugin as linked.

Disclaimer: I'm the maintainer of the javafx-maven-plugin.

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