Hey,

 

In Eclipse I create a brand new Java project, and then add a single Jess file to the project root containing the following:

 

(import org.jdom.Document)

 

(defclass xml-document org.jdom.Document)

 

(defrule find-xml-document

      "No comment"

      (xml-document (OBJECT ?obj))

      =>

      (printout t "JDom document found" crlf)

)

 

I get the following warning on the (import) line:

 

“No such class at token ‘org.jdom.Document’”

 

But more significantly, I get the following error on the (xml-document) pattern declaration:

 

“Created implied ordered template at token ‘xml-document’

Bad slot value: MAIN::xml-document is an ordered template and can’t have named slots at token ‘)’”

 

Pretty much every line has an error after that, but I suspect this is the culprit.

 

I’ve added jdom.jar to the project build path, and even added jdom.jar to the CLP file’s ‘Source Dependencies’ property (out of desperation).

 

Is there something I’m missing?

 

-Mitch

Reply via email to