There's no Jess-specific environment variable (Java can't use
environment variables, of course, anyway.)  Given the command (batch
X), Jess tries several places to find X. First, it assumes X is a
filename relative to the current directory. If Jess can't find the
file there, it passes X to the getResource() method of
ClassLoader. Therefore, if X is "associated with" the file Rete.class,
it should be found. If Rete.class is in a JAR file, then the file
should be in that JAR. If Rete.class is being loaded from a directory,
then X should be in that same directory.

There is an issue with Jess60a5 and those few Java2 VMs that always
return null from Class.getClassLoader(). If what you're seeing is a
NullPointerException, then you're being bitten by this bug, which will
be corrected in Jess60a6. If, on the other hand, you're seeing an
IOException, then it's simply that the file isn't in any of the right
places to be found. Check your setup and try again.

I think Mona Marathe wrote:
> Hello!
> 
>       We are new to using Jess. We have been trying to create a GUI for a
> Jess-based application using a servlet. The Jess-based application is
> written in Java and imports the Jess classes. For initial testing we had
> written a main() function and tested it out simply. While integrating the
> class (which creates a new Rete() object) with a servlet we got an initial
> error at the stage
>       Rete a = new Rete();
>       Tracing through the error we discovered that the Batch function cannot
> find the file LIBRARY_NAME = "jess/scriptlib.clp". The file is very much
> there. The problem is that the environment cannot figure out the right
> path. Obviously some Jess-specific environment variable needs to be
> set. Could anyone tell us what it is?
> 
> Thank you
> 
> 
> 
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [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 (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to