| I am not trying to be dense, and you have been very helpful. I added the import statement and the rules file works properly in my Eclipse environment. My question is aimed at trying to understand why Jess knows from where to import Java classes on a given computer. That is, I could write Java objects in any number of locations or programs on a given computer. If I then come along and write, in some completely different directory location, a standalone Jess file, but I try to import Java objects that may exist anywhere on my machine, how does Jess find them? For example, the Patient class exists on my machine, and I told you that my immediate problem was solved within the Eclipse environment by adding the import. But now I open a new terminal and interactive session with Jess and get the following result: Jess, the Rule Engine for the Java Platform Copyright (C) 2006 Sandia Corporation Jess Version 7.0b7 5/11/2006 Jess> (deftemplate Patient (declare (from-class "edu.utah.cdmcc.entities.Patient"))) Jess reported an error in routine defclass. Message: Class not found:. Program text: ( deftemplate Patient ( declare ( from-class "edu.utah.cdmcc.entities.Patient" ) ) ) at line 2. Nested exception is: edu.utah.cdmcc.entities.Patient Jess> I am not surprised at this because I am naively thinking that I have to somehow tell Jess where the object classes would be found in order to be imported. - Mike On Jul 21, 2006, at 9:31 PM, friedman_hill ernest j wrote:
|
- JESS: Fact template conflicts? mdean77
- Re: JESS: Fact template conflicts? friedman_hill ernest j
- Re: JESS: Fact template conflicts? mdean77
- Re: JESS: Fact template conflicts? friedman_hill ernest j
- Re: JESS: Fact template conflicts? mdean77
- Re: JESS: Fact template confl... friedman_hill ernest j
- Re: JESS: Fact template c... mdean77
- Re: JESS: Fact templa... mdean77
- JESS: Ordering execut... erich.oliphant
- Re: JESS: Ordering ex... Henrique Lopes Cardoso
