开发者

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

开发者 https://www.devze.com 2023-03-28 18:35 出处:网络
When I type: import javax.xml. all that I have got available is: javax.xml.parsers javax.xml.XMLConstants

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

精彩评论

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