打包教程:
http://www.javafxchina.net/blog/2015/09/efxclipse-2/
打包步骤
1.点击build.fxbuild文件
输入以下必填项
2.点击Generate ant build.xml and run
即可打包
jar输出在build/dist/项目.jar目录
执行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