首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

The method getTextContent() is undefined for the type Node解决方法

2012-03-11 
The method getTextContent() is undefined for the type Nodeimport org.w3c.dom.Node为什么这里的node.

The method getTextContent() is undefined for the type Node
import org.w3c.dom.Node;
为什么这里的node.getTextContent()方法在jdk下可以适用,当我把程序迁移到web项目下的时候总是提示这个方法不可用。是怎么回事那?

[解决办法]
找到rt.jar这个文件 然后把他放到你web项目中,再加入编译路径 编译之后就不会提示你找不到了.

热点排行