Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xpath

0 views
Skip to first unread message

Giulio

unread,
Dec 8, 2005, 6:19:34 PM12/8/05
to
Salve,
mi aiutate a trovare le librerie per usare Xpath ?
sto usando Jdom 1.0 ma c'è un qualche problema che non riesco a capire:


---------------------------------------
public static String TOQuoteTypes = "/config";

/**
* contains the associations key is the name of the configuration value
* and value is the associated value
*/
private Map config;

/**
*
* @param confFile String
* @throws JDOMException
* @throws IOException
*/
public configuration(String confFile) throws Exception {
Document Jdom;
try {
Jdom = getJDOM(confFile);
} catch (IOException ex) {
throw new Exception("IOException: " + ex.getMessage());
} catch (JDOMException ex) {
throw new Exception("JDOMException: " + ex.getMessage());
}

System.out.println("Jdom = getJDOM(confFile);");
config = new HashMap();

System.out.println(Jdom.toString());

XPath query = XPath.newInstance(TOQuoteTypes);

----------------------------

l'esecuzione si blocca qui dicendo:

---------
java.lang.NoClassDefFoundError: org/jaxen/BaseXPath
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.jdom.xpath.XPath.newInstance(XPath.java:126)
at util.configuration.<init>(configuration.java:40)
-----------------------

mi aiutate??

Grazie

0 new messages