开发者

How can I import javax.xml.XPath if missing?

When I type: import javax.xml.

all that I have got available is:

javax.xml.parsers javax.xml.XMLConstants

I need javax.xml.XPath Wha开发者_运维问答t do I need to do?


It's javax.xml.xpath.XPath, try that instead.


If you are using Eclipse and a Mac, add your objects (even if you use them statically) and then hit Cmd + Shift + O ( == Organize Imports ). Windows is Ctrl + Shift + O. This will add any missing import statements.
If you are missing XPath, you can download the Jar from one of these sources:
apache.org
Or download the latest stable build here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜