[英]My javaFX application in jar file show error “JavaFX runtime components are missing, and are required to run this application”
I want to create exe file from my javaFX project.我想从我的 javaFX 项目创建 exe 文件。 I have exported my project into runable jar file to change it to exe with launch4j but when I run jar file with command promp it show "Error: JavaFX runtime components are missing, and are required to run this application"
我已将我的项目导出到可运行的 jar 文件中,以使用 launch4j 将其更改为 exe,但是当我使用命令提示符运行 jar 文件时,它显示“错误:缺少 Z47A34A9D6CE8F6ECB97788888B01C260 运行此应用程序所需的运行时组件”,
when I exporting to.jar it finished with warnnings "duplicate entry: module-info.class" for multiple line.Is it the reason?当我导出到.jar 时,它以多行的警告“重复条目:module-info.class”结束。这是原因吗?
To run from terminal do:要从终端运行:
java -jar --module-path /path/to/javafx/lib \
--add-modules=javafx,controls,javafx.media \
# and whatever other jars you need from the library) \
filename.jar
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.