I think [EMAIL PROTECTED] wrote: > > and then i want to run everything. but i keep getting Nullpointer expection. > and i think becouse i am trying to r.executeCommand to Jess b4 running >
Jess won't throw bare NullPointerExceptions; it may throw them wrapped in JessException if you try, for example, to call a method on a nil reference from within the Jess language. If you're getting bare NullPointerExceptions, then it's more likely that "r" isn't being initialized before you're calling methods on it. Make sure you read and follow the advice in the section of chapter 4 of the manual that concerns JessException (regarding displaying all the information in a JessException object.) It will be a big help in tracking down problems like this. > r.executeCommand("(batch jess/scriptlib.clp)"); It's not necessary to do this in Jess 6; Jess takes care of loading this library itself. --------------------------------------------------------- Ernest Friedman-Hill Science and Engineering PSEs 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] --------------------------------------------------------------------