Hi Leo,
Your code is calling the Jess "definstance" function incorrectly;
either the argument must be of a class with an
addPropertyChangeListener() method, or the optional argument "static"
must be supplied. Since you're experimenting with calling the Jess
function "definstance" from Java, a prudent course of action would be
to understand that function first! See manual sections 2.7.4, 8.37,
and 8.38 in the Jess 5 manual.
I think Leo Ly wrote:
> Good day everyone,
> I am a new jess user. I was trying to learn how to use Jess in Java
> off the Jess webpage. In section 4.6 (the jess.Funcall class), there is
> an example that teaches new users how to use the jess.Funcall class. I
> copied the example, and it works, but when i tried to use my own class
> (Event.java) instead of the button class in the java.awt.button, I got
> some weird error [:]
>
> Jess reported an error in routine definstance while executing
> (definstance event
> <External-Address: Test.Event>).
> Message: Obj doesn't accept PropertyChangeListeners.
>
> My event class is just a class with three string instance variable and a
> constructor
> tha takes in two string parameters.
>
---------------------------------------------------------
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]
---------------------------------------------------------------------