SAXBuilder 问题
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
public String parserXml(InputStream is) throws
IOException, JDOMException{
SAXBuilder builder=new SAXBuilder(false); Document document = builder.build(is);
Element root = document.getRootElement();
Map map=new HashMap();
for (Iterator iter = root.getChildren().iterator(); iter.hasNext();)
{
Element locale = (Element) iter.next();
map.put(locale.getName(), locale.getValue());
}
if(map.get("result").equals("1")){
return "1";
}
return "0";
}
提示Caused by:
java.lang.NoClassDefFoundError
jar包已经导进去了,请问下怎么解决谢谢
------解决方案--------------------完整代码看下。。。
------解决方案--------------------不用看了,肯定还是少包。