Y
yangqiao
i have a java file as following:
import org.cyberneko.html.parsers.DOMParser;
........
org.cyberneko.html.parsers.DOMParser parser = new
org.cyberneko.html.parsers.DOMParser();
parser.parse(this.tdcFile.toString());
htmlprocess(parser.getDocument(),"");
........
i have lay relative jar into classpath.
it runs wrongly as following:
[1]java.lang.NoSuchMethodError:
org.apache.xerces.parsers.DOMParser.<init>(Lorg/
apache/xerces/xni/parser/XMLParserConfigurationV
at org.cyberneko.html.parsers.DOMParser.<init>(Unknown Source)
.....
in file, i use class "org.cyberneko.html.parsers.DOMParser", why the
wrong is:java.lang.NoSuchMethodError:
org.apache.xerces.parsers.DOMParser.
but i don't use org.apache.xerces.parsers.DOMParser in my file.
maybe the reason is that: there are the old jar in classpath.
how can i do?
import org.cyberneko.html.parsers.DOMParser;
........
org.cyberneko.html.parsers.DOMParser parser = new
org.cyberneko.html.parsers.DOMParser();
parser.parse(this.tdcFile.toString());
htmlprocess(parser.getDocument(),"");
........
i have lay relative jar into classpath.
it runs wrongly as following:
[1]java.lang.NoSuchMethodError:
org.apache.xerces.parsers.DOMParser.<init>(Lorg/
apache/xerces/xni/parser/XMLParserConfigurationV
at org.cyberneko.html.parsers.DOMParser.<init>(Unknown Source)
.....
in file, i use class "org.cyberneko.html.parsers.DOMParser", why the
wrong is:java.lang.NoSuchMethodError:
org.apache.xerces.parsers.DOMParser.
but i don't use org.apache.xerces.parsers.DOMParser in my file.
maybe the reason is that: there are the old jar in classpath.
how can i do?