JavaFX 部署 运行出错

刚学JavaFX 跟着教程 一步一步往下做, 到部署的时候
右键bulid.xml文件, Run as ==> Ant build 报错

谁知道可能是什么原因吗?

init-fx-tasks:
[taskdef] Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found.
do-deploy:
[copy] Copying 3 files to D:\MyWork\git\git-demo\pack_fx\build\dist\libs

BUILD FAILED
D:\MyWork\git\git-demo\pack_fx\build\build.xml:116: Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:resources
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
No types or tasks have been defined in this namespace yet

图片说明

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
部署、运行EJB出错
我刚学EJB 在部署完后运行出错:错误如下:请问是那里出了问题?“步骤全部按教程的去做http://www.pconline.com.cn/pcedu/empolder/gj/java/10203/40593.html”rnrnJ2EE SDK/1.3.1 - HTTP Status 404 - /SecurityJSPAliasrnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage /SecurityJSPAliasrnrndescription The requested resource (/SecurityJSPAlias) is not available.rn
Jdeveloper部署iStore运行出错
java.lang.NoClassDefFoundError at _oa__html._ibeCZzdError._jspService(_ibeCZzdError.java:83) [/OA_HTML/ibeCZzdError.jsp] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:662) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:370) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:270) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:204) at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:761) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:727) at _oa__html._ibeCZzdMinisites._jspService(_ibeCZzdMinisites.java:833) [/OA_HTML/ibeCZzdMinisites.jsp] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230) at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)rn
RMI部署,客户端运行出错
我在部署RMI的时候~rnstart rmiregistryrnjava -Djava.rmi.server.codebase=http://localhost:8080/server/ ProductServerrn这两部都成功了rn但是在启动客户端程序rnjava -Djava.security.policy=client.policy ProductClientrn的时候却报错了~好像是连接不上服务器~我想了好久都找不出原因啊 rn希望您能给我帮助rnrnPS:我电脑上的服务器是tomcat,服务器端文件放在tomcat根目录的server目录下rn client.policy, ProductClient两个文件在同一个目录下rn client.policy的内容是rn grant rnpermission java.security.AllPermission; rn; rnrn[img=file://c:捕获][/img]rnrn再贴上ProductClient的代码rnrnrnrnimport java.rmi.*;rnimport java.rmi.server.*;rnimport javax.naming.*;rnimport java.util.Scanner; rnpublic class ProductClient rnrnrn /**rn * @param argsrn */rn rn public static void main(String[] args) rn rn // TODO Auto-generated method stubrn System.setProperty("java.security.policy", "client.policy");rn System.setSecurityManager(new RMISecurityManager());rn //System.setProperty("java.rmi.server.codebase", "http://localhost:8080/server/");rn rn String url="rmi://localhost/";rn Scanner yn=new Scanner(System.in);rn String choice;rn tryrn rn Context namingContext=new InitialContext();rn Product c1=(Product)namingContext.lookup(url+"toaster");rn Product c2=(Product)namingContext.lookup(url+"microwave");rn rn System.out.println(c1.getDescription());rn System.out.println(c2.getDescription());rn choice=yn.nextLine();rn rn catch(Exception e)rn rn e.printStackTrace();rn rnrn rnrn
在tomcate下能运行 为什么部署到weblogic下出错
在tomcate下能运行 为什么部署到weblogic下出错
部署出错
部署出错:部署步骤“激活功能”中出现错误: 在当前站点集或子网站中找到功能 556344ca-7559-44b5-9f8f-7dc48d08bc4e 中定义的 ID 为 0x010100F574842A93164F56903B87FECDB7ED64 的内容类型。rn删除了解决方案,重新部署仍然出错。报错仍然是这个。不知大家有没有什么解决方法。谢谢。rn
JavaFX高级教程:部署JavaFX2.0应用
JavaFX高级教程:部署JavaFX2.0应用 官方中午文档
javaFX之HelloWorld部署之为jar签名事宜
NULL 博文链接:https://cnge06.iteye.com/blog/833648
请教一个JavaFX App部署问题
我现在的开发平台是NetBeans IDE 7.1 + JavaFX 2.0开发的一个桌面应用程序,例子参考http://docs.oracle.com/javafx/,编译以后在dist文件夹下面生成三个文件rn1、ColorfulCircles.html rn2、ColorfulCircles.jarrn3、ColorfulCircles.jnlprn现在的情况是,在我本机上点击2、3这个应用程序会正常运行,因为我本机安装了JDK,里面自带了JavaFX的的runtime,我现在的要求是在一台新的机器上,如何部署2、ColorfulCircles.jar,在没有安装runtime的情况下,如果通过打包程序直接把runtime给一起打包给客户,客户机器不用到网站在去下载JavaFx的runtime,我知道如果用户点击1、ColorfulCircles.html或者3、ColorfulCircles.jnlp在机器没有安装JavaFx runtime的情况下,程序会自动检测并且安装JavaFx runtime ,但是我现在需要的是部署2、ColorfulCircles.jar而想把JavaFx的runtime直接打包根据我们发布包直接运行JavaFx,不必在网上去下载JavaFx runtime,不知道有什么方法实现吗?谢谢
javaFx的变量,javaFx的数据类型,javaFx的运算符
一、javaFx的变量              1、定义变量            javaFx通过var关键字定义变量,变量类型可以省略,若省略,可通过实际赋值的类型的值来判断。            定义的格式为:var 变量名[:变量类型] = 变量值;             eg:var i:Integer = 12;                    var name:
javaFX
[code=Java]rn//AddressTest类rnAddressTest rn var street: String = "1 Main Street";rn var city: String = "1 Main Street";rn var state: String = "CA";rn var zip: String = "95050";rnrndef tempAddr:String = "Peaking,ZGC Park 10#.";rn//CustomerTest类rn// place your JavaFX code herernCustomerTestrn var firstName: String = "John";rn var lastName: String = "Dog";rn var phoneNum: String = "(408) 555-1212";rn var address: AddressTest = AddressTest ;rnrnrnvar firstName: String;rnrndef customer = CustomerTestrnvar taddr:String ;rnfunction printName()rn println(firstName);rnrn printName();rn[/code]rn请问上面代码如何修改才能输出构造方法里的firstName的默认值“John”?rn如何将tempAddr变量值付给CustomerTest类的taddr变量?rnrn
javafx 本质论(essential javafx)英文版
英文版的javaFx本质论, 共361页
运行出错
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>rnrnrnrn rn 在线聊天室rnrnrnrnrnrnrnrnrnrnrn rn<body bgcolor="#FFFFF">rn</body>rnrnrnrnrn[color=#FF0000]正常与你该显示三个小窗口,input.asp我也做了,可就是不显示[/color]rnrn<%room=session("room")rn name=session("name")rn set rs=server.CreateObject("adodb.recordset")rnsql="select name from online where room='"&room&"'"rnrs.open sql,conn,1,3rn%>rnrnrnrn rn 无标题文档rn rnrnrnrn rn rn rn rn rn<%=name%>rnrnrn rnrn所有人rn<%rnfor i=1 to rs.recordcountrnname=rs("name")%>rn<%=name%>rn<% rs.movementrnnextrnrs.closernrn%>rnrn说 颜色:rnrn黑色rn红色rn绿色rn蓝色rn紫色rn青色rn深红色rn草绿色rn海蓝色rnrnrnrn rn rn rnrnrn rnrn rn rn 内 容:rnrn rnrnrnrn rn rnrnrnrnrnrnrnrnrnrnrn rnrnrn
运行出错!
[img=https://img-bbs.csdn.net/upload/201306/24/1372044715_755782.jpg][/img]rn这问题该怎么解决,各位请给点意见吧!谢谢!
运行出错!!!!
rnrnrnrnrn rn createroomrnrnrnrn rn rn rn 请输入你的信息:rnrn rn 房间名rn rnrn rn 管理员姓名: rn rn rn rn 管理员密码: rn rnrnrn rn rn rnrnrnrnrnrnrn<%rnroom_name=trim(request.Form("room_name"))rncreate_name=trim(request.Form("name"))rnpwd=trim(request.Form("pwd"))rnif room_name <>"" thenrnset rs=server.CreateObject("adodb.recordset")rnsql="select * from room "rnrs.open sql,conn,1,3rnif rs.recordcount>0 thenrnfor i=1 to rs.recordcountrnif rs("room_name")=room_name thenrnerrormessage="对不起,该房间名已经存在了。"rnexit forrnend ifrnif errormessage<>"" thenrnerrormessage=" "&errormessage&" "rnresponse.Write errormessagernresponse.Write("请重新输入")rnelsernnowtime=cstr(now)rnrs.addnewrnrs("room_name")=room_namernrs("creste_time")=nowtimernrnrs("create_person")=create_namernrs("pwd")=pwdrnrs.updaternapplication.Lock()rnapplication(room_name)=""rnapplication.UnLock()rnresponse.Write(" 你已经成功创建了<<"&room_name&">>聊天室 ")rnresponse.Write("回到登录聊天室界面")rnresponse.End()rn[color=#FF0000]next[/color]rnend ifrn%>rnrnrn显示缺少next可是我填上了,它又显示错误的next怎么回事呀!!
运行出错!!
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e2f' rnrn[Microsoft][ODBC SQL Server Driver]小数截位 rnrn/Login/Register_Confirm.asp,行60 rnrn错误代码:rs.updatern不知错的原因
运行出错???
程序测试完打包装到另一台机器运行时出现“run-time error '13' type mismatch "错误是什么原因???
运行出错!!!!!
#include rn#include rn#include rnrnvoid ChangTick(int ms)rnrn int value=65535/55*ms;rn asmrn rn mov al,36hrn out 43h,alrn mov as,valuern out 40h,alrn mov al,ahrn out 40h,alrn rnrnrnmain()rnrn clock_t BeginTickCount,EndTickcount;rn ChangTick(1);rn BeginTickClock=clock();rn /* 在这里添加要测试运行时间的程序 */rn EndTickClock=clock();rn printf("程序运行%d秒",EndTickCount-BeginTickCount);rn ChangTick(55);rnrnrnrn以上程序是要测试某算法的所用时间(精确到毫秒),但运行出错,至于出错信息我忘了,请各位帮忙看看,指出错误。
运行出错.
用JBuilder2006运行出现了如下的错误:rn"monitorcc": debugjsp servlet class: "org.apache.jasper.servlet.JspServlet" is not in the project.rn是不是还没有导入哪个类啊?可是我找不到这个类.请指教..rnrn
运行出错!!!
下面的程序,想对字符串排序后输出,但运行出错,检查了N次不是哪的错?rn[code=C/C++]rn#includern#includernvoid sort()rnrn char a[]="6446sdf45sdf3";rn int m=strlen(a)-1;rn __asmrn rn mov ecx,mrn lea esi,arn lea edi,[esi+ecx]rnloop1:rn rnloop2:rn mov al,byte ptr [esi]rn mov bl,byte ptr [edi]rn mov dl,alrn cmp dl,blrn jl next2rn mov byte ptr [esi],blrn mov byte ptr [edi],alrnnext2:rn dec edirn mov eax,esirn mov ebx,edirn cmp eax,ebxrn jnz loop2rnrn inc esirn dec ecxrn jnz loop1rn rn printf("%s \n",a);rnrnrnvoid main()rnrn sort();rnrn[/code]
运行出错....
message rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrnrnAn error occurred at line: 3 in the jsp file: /sample/2.jsprnrnGenerated servlet error:rn [javac] Compiling 1 source filernrnC:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\sample\_2_jsp.java:44: cannot resolve symbolrnsymbol : class TextBean rnlocation: class org.apache.jsp.sample._2_jsprn TextBean TextBean = null;rnrn2.jsp代码:rnrnrnrnrn教材编号 rn教材名称 rn订购数量 rn总价值 rnrnrnuseBean TextBean.class我以编译放到classes中rn
JavaFx 入门文档,JavaFx实例
最近公司需要这技术,自己官网研究,案例,心得。
JavaFX入门(二):JavaFX和FXML
在我的JavaFXML系列博客第一篇《JavaFX入门(一):我的第一个JavaFX程序 》中我们用纯Java代码写了一个很简单的JavaFXML程序,这一节中我们使用FXML编写程序界面,然后用Java书写后台逻辑完成上一节中的程序,实现相同的功能。 通俗的理解FXML:FXML是一种以XML的格式表示JavaFX界面对象的文件,FXML文件中的每一个元素可以映射到JavaFX中的一个类,每个
在swing界面中嵌入javaFX运行的视频
NULL 博文链接:https://weiyongqing.iteye.com/blog/1220470
javaFX如何在web应用程序中运行?
javaFX也是像applet一样嵌入到页面中才能在web应用程序中运行吗,如果不是那是如果运行的呢,我看网上的例子都是桌面应用程序的,请高手指点
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制