I think Donald Rich wrote:
> Thank you, I found the problem using printStackTrace. I was not using
> this originally because it fails when using the jar from Jess61b2.zip:
>
> java.lang.NoSuchMethodError
> at jess.JessException.toString(Unknown Source)
> at java.lang.String.valueOf(Unknown Source)
> at java.io.PrintStream.print(Unknown Source)
> at java.io.PrintStream.println(Unknown Source)
> at java.lang.Throwable.printStackTrace(Unknown Source)
> at test.Test.run(Test.java:88)
> at test.Test.main(Test.java:95)
> Exception in thread "main"
>
That's weird. I tried the following program against the 6.1b2 trial
jar file:
import jess.*;
public class Foo {
public static void main(String[] argv) {
Rete r = new Rete();
try {
r.executeCommand("(foo)");
} catch (JessException je) {
je.printStackTrace();
}
}
}
and I get this:
[EMAIL PROTECTED] Jess61b2]$ java Foo
Jess reported an error in routine Funcall.execute
while executing (foo).
Message: Unimplemented function foo.
Program text: ( foo ) at line 1.
at jess.Funcall.execute(Unknown Source)
at jess.Jesp.a(Unknown Source)
at jess.Jesp.for(Unknown Source)
at jess.Jesp.parse(Unknown Source)
at jess.Rete.executeCommand(Unknown Source)
at jess.Rete.executeCommand(Unknown Source)
at Foo.main(Foo.java:7)
What does your Test.java look like?
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems 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]
--------------------------------------------------------------------