码迷,mamicode.com
首页 > 其他好文 > 详细

The method getTextContent()is undefined for...编译出错

时间:2014-08-19 13:03:14      阅读:256      评论:0      收藏:0      [点我收藏+]

标签:style   color   for   ar   ef   on   sp   type   

在build项目中出现了The method getTextContent() is undefined for the type Element 的错误,

原因是

本来调用的那个方法应该是jdk下的那个包里的类,而在web项目里却调用了J2EE里的xml-apis.jar下的org.w3c.dom。(实际上要 调用的那个方法是在jdk下的rt.jar下的org.w3c.dom)。

解决方法

尝试了很多次。后来把jdk和J2EE在项目里的位置调整了下就好 了,即让jdk在J2EE上面.       

build通过

The method getTextContent()is undefined for...编译出错,布布扣,bubuko.com

The method getTextContent()is undefined for...编译出错

标签:style   color   for   ar   ef   on   sp   type   

原文地址:http://my.oschina.net/zzzGA/blog/304157

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!