Ooops, my fault. I didn't read your original mail closely enough. Yes,
you're right; the problem is that you must load load-package before
using it, as you observes.

I think [EMAIL PROTECTED] wrote:
> 
> Sorry, but I still get the same error message with "jess.MathFunctions".
> The message says that "load-package" is unimplemented.
> 
> I just looked at the Jess manual again and found that load-package is in
> jess.MiscFunctions. How do I load MiscFunctions (or MathFunctions) when 
> the load functions need to be loaded first?
> 
> Friedman-Hill, Ernest wrote:
> > 
> > 
> > The class MathFunctions is inside the package 'jess', so the full name of
> > the class, which must be passed to load-package, is "jess.MathFunctions".
> > 
> > You can simply say "new MathFunctions()" in your Java code presumably
> > because you have an 'import jess.*;' statement.
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Sent: 2/9/99 10:10 AM
> > Subject: JESS: load-package
> > 
> > I'm trying to load the MathFunctions that are distributed with Jess 4.0
> > from inside a Jess file that needs it.
> > When I add:
> > 
> > (load-package "MathFunctions")
> > 
> > to the Jess I get
> > 
> > Rete exception in routine Context::expandAction.
> >         Message: Unimplemented function load-package at line 303: (
> > load-package "MathFunctions" ) .
> > 
> > What am I doing wrong?
> > 
> > I was able to load the MathFunctions from the Java that calls Jess with
> > 
> > rete.addUserpackage( new MathFunctions() );
> > 
> > But I only want to load MathFunctions when it is needed on a Jess file
> > by file basis.
> > 
> > Thanks
> > Christo



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9214                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to