打包教程:
http://www.javafxchina.net/blog/2015/09/efxclipse-2/
打包步骤
1.点击build.fxbuild文件
![](https://img.haomeiwen.com/i1992772/e60b361ebdf44bed.png)
输入以下必填项
![](https://img.haomeiwen.com/i1992772/33262da06d25776d.png)
2.点击Generate ant build.xml and run
即可打包
![](https://img.haomeiwen.com/i1992772/edd8a433adb9037d.png)
jar输出在build/dist/项目.jar目录
![](https://img.haomeiwen.com/i1992772/482570ce4d3e3167.png)
执行ant打包出现
Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found
错误解决方法:
http://wiki.eclipse.org/Efxclipse/Tutorials/AddingE(fx)clipse_to_eclipse
1.偏好设置-Java-Install Jres-Add增加jdk路径-选择Standard VM-输入jdk路径-完成后返回,勾选新增的jdk
2.进入偏好设置-Java-Install Jres展开-Execut Enviroment-点击jdk1.8-勾选新增的jdk
网友评论