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:

I think mdean77 wrote:
This then raises the question of where do these classes need to be  
for the Jess file to find them?

Haven't we just spent a lot of time discussing exactly that?


etc?



---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED].
--------------------------------------------------------------------


Reply via email to