MyEclipse 下 the method getTextContent() is undefined for the type Element
2017-02-20 09:30
603 查看
在myeclipse下
pagefield.setTextContent(glDate);
这行代码编译报错,提示
the method getTextContent() is undefined for the type Element
原因:
应该使用jdk的rt.jar,
却使用了xml-apis.jar的。
解决方法:
右键项目,java build path,order and export,调整jdk在webAppLibrary的前面,重新编译后完事。
感谢:
http://bbs.csdn.net/topics/110167284
pagefield = dc.createElement("Field"); pagefield.setAttribute("Name", "glDate"); pagefield.setAttribute("type", "Date"); pagefield.setTextContent(glDate);
pagefield.setTextContent(glDate);
这行代码编译报错,提示
the method getTextContent() is undefined for the type Element
原因:
应该使用jdk的rt.jar,
却使用了xml-apis.jar的。
解决方法:
右键项目,java build path,order and export,调整jdk在webAppLibrary的前面,重新编译后完事。
感谢:
http://bbs.csdn.net/topics/110167284
相关文章推荐
- java异常 -The method getTextContent() is undefined for the type Element
- The method getTextContent() is undefined for the type Element
- The method getTextContent() is undefined for the type Element
- The method getTextContent() is undefined for the type Element
- eclipse中NodeList出现The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node方法报错
- 项目报错:The method getTextContent() is undefined for the type Node
- Eclipse常见问题解决 - The method getTextContent() is undefined for the type Node.
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node解决方法(eclipse)
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node
- The method getTextContent() is undefined for the type Node